flutter_youni_gromore 1.0.0 flutter_youni_gromore: ^1.0.0 copied to clipboard
穿山甲Gromore的Flutter插件(由你团队出品)
example/lib/main.dart
import 'package:flutter/material.dart';
import 'home_page.dart';
void main() {
///绑定引擎
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.red,
brightness: Brightness.light,
),
),
home: const HomePage(),
);
}
}