+ Autocomplete (prototype)

This commit is contained in:
2020-10-12 19:51:53 +02:00
parent 4dfd1c5e4a
commit e025484cab
6 changed files with 160 additions and 42 deletions

View File

@@ -8,17 +8,24 @@ void main() {
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Menui',
theme: ThemeData(
primarySwatch: Colors.orange,
primaryColor: Colors.orange,
accentColor: Colors.grey,
backgroundColor: Colors.grey,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: HomePage(title: 'Menui - food guide'),
);
return GestureDetector(
onTap: () {
FocusScopeNode currentFocus = FocusScope.of(context);
if (!currentFocus.hasPrimaryFocus) {
currentFocus.focusedChild.unfocus();
}
},
child: MaterialApp(
title: 'Menui',
theme: ThemeData(
primarySwatch: Colors.orange,
primaryColor: Colors.orange,
accentColor: Colors.grey,
backgroundColor: Colors.grey,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: HomePage(title: 'Menui - food guide'),
));
}
}