mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-25 16:48:48 +00:00
auto backup drop down menu
This commit is contained in:
parent
ec3378fec2
commit
60b332ad8a
1 changed files with 38 additions and 19 deletions
|
@ -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,25 +352,44 @@ class _CreateAutoBackup extends State<CreateAutoBackup> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
DropdownButton(
|
Padding(
|
||||||
value: _currentDropDownValue,
|
padding: const EdgeInsets.only(
|
||||||
items: _dropDOwnItems
|
left: 32,
|
||||||
.map(
|
right: 32,
|
||||||
(e) => DropdownMenuItem(
|
),
|
||||||
value: e,
|
child: DropdownButtonFormField(
|
||||||
child: Text(e),
|
isExpanded: true,
|
||||||
),
|
elevation: 0,
|
||||||
)
|
style: STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
.toList(),
|
color: Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
onChanged: (value) {
|
),
|
||||||
if (value is String) {
|
icon: SvgPicture.asset(
|
||||||
setState(() {
|
Assets.svg.chevronDown,
|
||||||
_currentDropDownValue = value;
|
width: 10,
|
||||||
});
|
height: 5,
|
||||||
}
|
color: Theme.of(context).extension<StackColors>()!.textDark3,
|
||||||
},
|
),
|
||||||
|
dropdownColor:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textFieldActiveBG,
|
||||||
|
// focusColor: ,
|
||||||
|
value: _currentDropDownValue,
|
||||||
|
items: _dropDownItems
|
||||||
|
.map(
|
||||||
|
(e) => DropdownMenuItem(
|
||||||
|
value: e,
|
||||||
|
child: Text(e),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
onChanged: (value) {
|
||||||
|
if (value is String) {
|
||||||
|
setState(() {
|
||||||
|
_currentDropDownValue = value;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(32),
|
padding: const EdgeInsets.all(32),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
Loading…
Reference in a new issue