I need to change value color
Osmancn opened this issue · 2 comments
Osmancn commented
Widget get _valueWidget {
return Text(
isLoading ? loadingText : value,
style: const TextStyle(color: Colors.grey),
overflow: TextOverflow.ellipsis,
maxLines: 1,
);
}
why doesnt optional color
Widget get _valueWidget {
return Text(
isLoading ? loadingText : value,
style: TextStyle(color: ListTileTheme.of(context).textColor),
overflow: TextOverflow.ellipsis,
maxLines: 1,
);
}
muskara commented
There is no built-in method or property that you can change the color of value.
The only way is to do your own design with tileBuilder.
tileBuilder: (context, state) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 6),
child: InkWell(
onTap: () => state.showModal(),
child: Row(
children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(state.title, style: TextStyle(fontSize: 16, color: Colors.white)),
Text(state.valueObject.map((e) => e.title).join(', '), style: TextStyle(fontSize: 12, color: Colors.white70))
],
),
),
Icon(Icons.arrow_drop_down, size: 30, color: Colors.white70,)
],
),
)
);
},
vasilich6107 commented
I released https://pub.dev/packages/flutter_awesome_select with fixed null safety.
Could you check that everything works for you?