Merge pull request #5234 from pangeachat/5224-cefr-description-overflow
Merge pull request #5230 from pangeachat/5229-text-size-carried-over-…
This commit is contained in:
commit
4c74f45346
2 changed files with 7 additions and 4 deletions
|
|
@ -154,6 +154,7 @@ class BotChatSettingsDialogState extends State<BotChatSettingsDialog> {
|
|||
initialLevel: _selectedLevel,
|
||||
onChanged: _setLevel,
|
||||
enabled: !widget.room.isActivitySession,
|
||||
width: 300,
|
||||
),
|
||||
DropdownButtonFormField2<String>(
|
||||
customButton: _selectedVoice != null
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import 'package:dropdown_button2/dropdown_button2.dart';
|
||||
|
||||
import 'package:fluffychat/config/themes.dart';
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import 'package:fluffychat/pangea/common/widgets/dropdown_text_button.dart';
|
||||
import 'package:fluffychat/pangea/learning_settings/language_level_type_enum.dart';
|
||||
|
|
@ -14,6 +13,7 @@ class LanguageLevelDropdown extends StatelessWidget {
|
|||
final FormFieldValidator<Object>? validator;
|
||||
final bool enabled;
|
||||
final Color? backgroundColor;
|
||||
final double? width;
|
||||
|
||||
const LanguageLevelDropdown({
|
||||
super.key,
|
||||
|
|
@ -22,6 +22,7 @@ class LanguageLevelDropdown extends StatelessWidget {
|
|||
this.validator,
|
||||
this.enabled = true,
|
||||
this.backgroundColor,
|
||||
this.width,
|
||||
});
|
||||
|
||||
@override
|
||||
|
|
@ -33,12 +34,12 @@ class LanguageLevelDropdown extends StatelessWidget {
|
|||
LanguageLevelTypeEnum.values.contains(initialLevel)
|
||||
? CustomDropdownTextButton(text: initialLevel!.title(context))
|
||||
: null,
|
||||
menuItemStyleData: MenuItemStyleData(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
menuItemStyleData: const MenuItemStyleData(
|
||||
padding: EdgeInsets.symmetric(
|
||||
vertical: 8.0,
|
||||
horizontal: 16.0,
|
||||
),
|
||||
height: FluffyThemes.isColumnMode(context) ? 100.0 : 150.0,
|
||||
height: 100.0,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.cefrLevelLabel,
|
||||
|
|
@ -51,6 +52,7 @@ class LanguageLevelDropdown extends StatelessWidget {
|
|||
Theme.of(context).colorScheme.surfaceContainerHigh,
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
),
|
||||
width: width,
|
||||
),
|
||||
items:
|
||||
LanguageLevelTypeEnum.values.map((LanguageLevelTypeEnum levelOption) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue