|
|
|
|
@ -5,7 +5,6 @@ import 'package:fluffychat/pangea/models/bot_options_model.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/utils/bot_name.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/common/bot_face_svg.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/conversation_bot/conversation_bot_mode_dynamic_zone.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/conversation_bot/conversation_bot_mode_select.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/space/language_level_dropdown.dart';
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -245,28 +244,28 @@ class ConversationBotSettingsState extends State<ConversationBotSettings> {
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.fromLTRB(32, 16, 0, 0),
|
|
|
|
|
child: Text(
|
|
|
|
|
L10n.of(context)!.conversationBotModeSelectDescription,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 16),
|
|
|
|
|
child: ConversationBotModeSelect(
|
|
|
|
|
initialMode: botOptions.mode,
|
|
|
|
|
onChanged: (String? mode) => updateBotOption(
|
|
|
|
|
() {
|
|
|
|
|
botOptions.mode = mode ?? "discussion";
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: const EdgeInsets.fromLTRB(32, 16, 0, 0),
|
|
|
|
|
// child: Text(
|
|
|
|
|
// L10n.of(context)!.conversationBotModeSelectDescription,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// color: Theme.of(context).colorScheme.secondary,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// fontSize: 16,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: const EdgeInsets.only(left: 16),
|
|
|
|
|
// child: ConversationBotModeSelect(
|
|
|
|
|
// initialMode: botOptions.mode,
|
|
|
|
|
// onChanged: (String? mode) => updateBotOption(
|
|
|
|
|
// () {
|
|
|
|
|
// botOptions.mode = mode ?? "discussion";
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.fromLTRB(28, 0, 12, 0),
|
|
|
|
|
child: ConversationBotModeDynamicZone(
|
|
|
|
|
|