flutter_tos_kit 0.0.1 flutter_tos_kit: ^0.0.1 copied to clipboard
Welcome to the "AICC" online customer service module's mobile developer tool kit (Flutter Plugin). We provide the Flutter version of Plugin for Android and iOS platforms. Through Plugin, you can quick [...]
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'config/config.dart';
import 'config/routers.dart';
void main() {
if (Platform.isAndroid) {
//设置Android头部的状态栏透明,字体颜色为黑色
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: Brightness.dark));
}
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: Config.primaryColor,
buttonTheme: const ButtonThemeData(
buttonColor: Config.primaryColor,
textTheme: ButtonTextTheme.normal)),
routes: Routers.getRouters,
initialRoute: Routers.home,
);
}
}