remove discussion mode selects

pull/1183/head
WilsonLe 1 year ago
parent 6210f743b0
commit 1724871de4

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

@ -28,7 +28,7 @@ import package_info_plus
import pasteboard import pasteboard
import path_provider_foundation import path_provider_foundation
import purchases_flutter import purchases_flutter
import record_macos import record_darwin
import sentry_flutter import sentry_flutter
import share_plus import share_plus
import shared_preferences_foundation import shared_preferences_foundation
@ -64,7 +64,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PasteboardPlugin.register(with: registry.registrar(forPlugin: "PasteboardPlugin")) PasteboardPlugin.register(with: registry.registrar(forPlugin: "PasteboardPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
PurchasesFlutterPlugin.register(with: registry.registrar(forPlugin: "PurchasesFlutterPlugin")) PurchasesFlutterPlugin.register(with: registry.registrar(forPlugin: "PurchasesFlutterPlugin"))
RecordMacosPlugin.register(with: registry.registrar(forPlugin: "RecordMacosPlugin")) RecordPlugin.register(with: registry.registrar(forPlugin: "RecordPlugin"))
SentryFlutterPlugin.register(with: registry.registrar(forPlugin: "SentryFlutterPlugin")) SentryFlutterPlugin.register(with: registry.registrar(forPlugin: "SentryFlutterPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))

Loading…
Cancel
Save