GAM3RG33K / flutter_settings_screens

Settings Screen with Custom Shared Preference Interface
MIT License
176 stars 71 forks source link

DropDownSettingsTile with Larg content string is get size error #105

Open safvanp opened 2 years ago

safvanp commented 2 years ago

DropDownSettingsTile Failed assertion: line 1210 pos 7: 'tileWidth != trailingSize.width || tileWidth == 0.0': Trailing widget consumes entire tile width. please fix with auto size

this is what i did actually.


class _DropDownSettingsTileNewState extends State<DropDownSettingsTileNew> { T selectedValue;

@override void initState() { super.initState(); selectedValue = widget.selected; }

@override Widget build(BuildContext context) { return ValueChangeObserver( cacheKey: widget.settingKey, defaultValue: selectedValue, builder: (BuildContext context, T value, OnChanged onChanged) { return SettingsContainer( children: [ _SettingsTile( title: widget.title, subtitle: widget.subtitle, enabled: widget.enabled, showChildBelow: true, //changed to true so it's getting next line

so add this as a parameter of DropDownSettingsTile