mintor features improvements in home page

exit select mode after deleting files

do not enter select mode if there are no notes
master
EmaMaker 2021-09-18 21:53:32 +02:00
parent d8755bc100
commit d7652f2378
1 changed files with 3 additions and 2 deletions

View File

@ -133,6 +133,7 @@ class _MyHomePageState extends State<MyHomePage> {
keys.forEach((element) {
element.currentState?.deleteFileFromSelect();
});
exitSelectMode();
break;
case "Cancel":
exitSelectMode();
@ -156,7 +157,7 @@ class _MyHomePageState extends State<MyHomePage> {
onChanged: (String? newValue) {
switch (newValue) {
case "Select":
enterSelectMode();
if(tiles.isNotEmpty) enterSelectMode();
break;
case "Settings":
Navigator.pushReplacement(
@ -165,7 +166,7 @@ class _MyHomePageState extends State<MyHomePage> {
setState(() {});
},
underline: Container(color: Colors.transparent),
items: <String>['Select', 'Settings']
items: <String>['Settings', 'Select']
.map<DropdownMenuItem<String>>((String value) {
return DropdownMenuItem<String>(
value: value,