rustdesk/flutter_hbb/lib/main.dart

26 lines
604 B
Dart
Raw Normal View History

2020-11-06 18:04:04 +08:00
import 'package:flutter/material.dart';
2020-11-15 20:04:05 +08:00
import 'package:provider/provider.dart';
import 'common.dart';
import 'home_page.dart';
2020-11-06 18:04:04 +08:00
void main() {
2020-11-16 01:13:26 +08:00
runApp(App());
2020-11-06 18:04:04 +08:00
}
2020-11-16 01:13:26 +08:00
class App extends StatelessWidget {
2020-11-06 18:04:04 +08:00
@override
Widget build(BuildContext context) {
2020-11-15 20:04:05 +08:00
var ffi = FfiModel();
return ChangeNotifierProvider.value(
value: ffi,
child: MaterialApp(
title: 'RustDesk',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: HomePage(title: 'RustDesk'),
2020-11-15 20:04:05 +08:00
));
2020-11-06 18:04:04 +08:00
}
}