Open safvanp opened 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
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