mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
made font size of AqiTypeDropdown
slightly smaller.
This commit is contained in:
@ -29,11 +29,6 @@ class _AqiTypeDropdownState extends State<AqiTypeDropdown> {
|
|||||||
|
|
||||||
void _updateSelectedItem(AqiType? item) => setState(() => _selectedItem = item);
|
void _updateSelectedItem(AqiType? item) => setState(() => _selectedItem = item);
|
||||||
|
|
||||||
static const _defaultPadding = EdgeInsetsDirectional.symmetric(
|
|
||||||
horizontal: 12,
|
|
||||||
vertical: 2,
|
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
@ -47,7 +42,6 @@ class _AqiTypeDropdownState extends State<AqiTypeDropdown> {
|
|||||||
child: DropdownButton<AqiType?>(
|
child: DropdownButton<AqiType?>(
|
||||||
value: _selectedItem,
|
value: _selectedItem,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
isExpanded: false,
|
|
||||||
borderRadius: BorderRadius.circular(16),
|
borderRadius: BorderRadius.circular(16),
|
||||||
dropdownColor: ColorsManager.whiteColors,
|
dropdownColor: ColorsManager.whiteColors,
|
||||||
underline: const SizedBox.shrink(),
|
underline: const SizedBox.shrink(),
|
||||||
@ -56,7 +50,10 @@ class _AqiTypeDropdownState extends State<AqiTypeDropdown> {
|
|||||||
child: Icon(Icons.chevron_right, size: 24),
|
child: Icon(Icons.chevron_right, size: 24),
|
||||||
),
|
),
|
||||||
style: _getTextStyle(context),
|
style: _getTextStyle(context),
|
||||||
padding: _defaultPadding,
|
padding: const EdgeInsetsDirectional.symmetric(
|
||||||
|
horizontal: 12,
|
||||||
|
vertical: 2,
|
||||||
|
),
|
||||||
items: AqiType.values
|
items: AqiType.values
|
||||||
.map((e) => DropdownMenuItem(value: e, child: Text(e.value)))
|
.map((e) => DropdownMenuItem(value: e, child: Text(e.value)))
|
||||||
.toList(),
|
.toList(),
|
||||||
@ -72,7 +69,7 @@ class _AqiTypeDropdownState extends State<AqiTypeDropdown> {
|
|||||||
return context.textTheme.labelSmall?.copyWith(
|
return context.textTheme.labelSmall?.copyWith(
|
||||||
color: ColorsManager.textPrimaryColor,
|
color: ColorsManager.textPrimaryColor,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
fontSize: 14,
|
fontSize: 12,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user