improvements

design_3.0_demo_module
Sikander Saleem 3 years ago
parent 58c5b434e2
commit 6e0ff34499

@ -79,10 +79,10 @@ class _SingleStatusMenuState extends State<FaultDescriptionMenu> {
isExpanded: true, isExpanded: true,
hint: Text( hint: Text(
"Select", "Select",
style: Theme.of(context).textTheme.subtitle1, style: Theme.of(context).textTheme.subtitle1.copyWith(color: widget.statuses.isEmpty ? Colors.grey : null),
), ),
style: TextStyle(color: Theme.of(context).primaryColor), style: TextStyle(color: Theme.of(context).primaryColor),
underline: SizedBox.shrink(), underline: const SizedBox.shrink(),
onChanged: (FaultDescription newValue) { onChanged: (FaultDescription newValue) {
setState(() { setState(() {
_selectedStatus = newValue; _selectedStatus = newValue;

@ -29,7 +29,7 @@ class ServiceReportFaultDescription extends StatelessWidget {
}, },
child: FaultDescriptionMenu( child: FaultDescriptionMenu(
initialStatus: initialValue, initialStatus: initialValue,
statuses: menuProvider.items, statuses: menuProvider.items ?? [],
onSelect: onSelect, onSelect: onSelect,
), ),
); );

Loading…
Cancel
Save