auto backup drop down menu

This commit is contained in:
ryleedavis 2022-11-01 14:16:31 -06:00
parent ec3378fec2
commit 60b332ad8a

View file

@ -34,7 +34,7 @@ class _CreateAutoBackup extends State<CreateAutoBackup> {
String _currentDropDownValue = "Every 10 minutes"; String _currentDropDownValue = "Every 10 minutes";
final List<String> _dropDOwnItems = [ final List<String> _dropDownItems = [
"Every 10 minutes", "Every 10 minutes",
"Every 20 minutes", "Every 20 minutes",
"Every 30 minutes", "Every 30 minutes",
@ -352,9 +352,28 @@ class _CreateAutoBackup extends State<CreateAutoBackup> {
const SizedBox( const SizedBox(
height: 10, height: 10,
), ),
DropdownButton( Padding(
padding: const EdgeInsets.only(
left: 32,
right: 32,
),
child: DropdownButtonFormField(
isExpanded: true,
elevation: 0,
style: STextStyles.desktopTextExtraSmall(context).copyWith(
color: Theme.of(context).extension<StackColors>()!.textDark,
),
icon: SvgPicture.asset(
Assets.svg.chevronDown,
width: 10,
height: 5,
color: Theme.of(context).extension<StackColors>()!.textDark3,
),
dropdownColor:
Theme.of(context).extension<StackColors>()!.textFieldActiveBG,
// focusColor: ,
value: _currentDropDownValue, value: _currentDropDownValue,
items: _dropDOwnItems items: _dropDownItems
.map( .map(
(e) => DropdownMenuItem( (e) => DropdownMenuItem(
value: e, value: e,
@ -370,7 +389,7 @@ class _CreateAutoBackup extends State<CreateAutoBackup> {
} }
}, },
), ),
const Spacer(), ),
Padding( Padding(
padding: const EdgeInsets.all(32), padding: const EdgeInsets.all(32),
child: Row( child: Row(