33 lines
892 B
Dart
33 lines
892 B
Dart
import 'package:flutter/material.dart';
|
|
import "components/homeScreen.dart";
|
|
|
|
void main() {
|
|
runApp(App());
|
|
}
|
|
|
|
class App extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GestureDetector(
|
|
onTap: () {
|
|
FocusScopeNode currentFocus = FocusScope.of(context);
|
|
if (!currentFocus.hasPrimaryFocus) {
|
|
currentFocus.focusedChild.unfocus();
|
|
}
|
|
},
|
|
child: MaterialApp(
|
|
title: 'Menui - food guide',
|
|
themeMode: ThemeMode.dark,
|
|
theme: ThemeData(
|
|
platform: TargetPlatform.iOS,
|
|
primarySwatch: Colors.orange,
|
|
primaryColor: Colors.orange,
|
|
accentColor: Colors.grey,
|
|
backgroundColor: Colors.grey,
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
),
|
|
home: HomePage(),
|
|
));
|
|
}
|
|
}
|