flutter_android 0.3.1 flutter_android: ^0.3.1 copied to clipboard
Flutter plugin for Android platform-specific APIs, to reduce duplication of effort by centralizing Android bindings in a single package.
/* This is free and unencumbered software released into the public domain. */
import 'package:flutter/material.dart';
import 'main_screen.dart';
import 'demos/bluetooth_scanner.dart' show BluetoothScannerDemo;
import 'demos/face_detector.dart' show FaceDetectorDemo;
////////////////////////////////////////////////////////////////////////////////
void main() => runApp(App());
////////////////////////////////////////////////////////////////////////////////
class App extends StatefulWidget {
@override
State<App> createState() => _AppState();
}
////////////////////////////////////////////////////////////////////////////////
class _AppState extends State<App> {
@override
void initState() {
super.initState();
}
@override
void dispose() {
super.dispose();
}
@override
Widget build(final BuildContext context) {
return MaterialApp(
color: Colors.grey,
theme: ThemeData(
primaryColor: Colors.black,
brightness: Brightness.dark,
),
home: MainScreen(),
routes: <String, WidgetBuilder>{
'/bluetooth_scanner': (context) => BluetoothScannerDemo(),
'/face_detection': (context) => FaceDetectorDemo(),
},
);
}
}