mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
init
This commit is contained in:
39
example/lib/main.dart
Normal file
39
example/lib/main.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* @Description:
|
||||
* @Author: ekibun
|
||||
* @Date: 2020-08-08 08:16:51
|
||||
* @LastEditors: ekibun
|
||||
* @LastEditTime: 2020-08-08 17:50:30
|
||||
*/
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_qjs_example/test.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
||||
const MyApp({ Key key }) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'flutter_qjs',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
appBarTheme: AppBarTheme(brightness: Brightness.dark, elevation: 0),
|
||||
primaryColor: Color(0xfff09199),
|
||||
accentColor: Color(0xffec818a),
|
||||
backgroundColor: Colors.grey[300],
|
||||
primaryColorBrightness: Brightness.dark,
|
||||
),
|
||||
routes: {
|
||||
'home': (BuildContext context) => TestPage(),
|
||||
},
|
||||
initialRoute: 'home',
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user