40 lines
1.1 KiB
Dart
40 lines
1.1 KiB
Dart
|
|
import 'package:flutter/material.dart';
|
|||
|
|
import 'page/layout/login.dart';
|
|||
|
|
import 'common/colorCom.dart';
|
|||
|
|
import 'package:tdesign_flutter/tdesign_flutter.dart';
|
|||
|
|
import 'package:wms_app/common/appConfig.dart';
|
|||
|
|
import 'package:bruno/bruno.dart';
|
|||
|
|
|
|||
|
|
void main() {
|
|||
|
|
// 注册Bruno的主题色
|
|||
|
|
BrnInitializer.register(
|
|||
|
|
allThemeConfig: BrnAllThemeConfig(
|
|||
|
|
// 全局配置
|
|||
|
|
commonConfig: BrnCommonConfig(brandPrimary: ColorCommon.colorScheme),
|
|||
|
|
// dialog配置
|
|||
|
|
dialogConfig: BrnDialogConfig(radius: 12.0))
|
|||
|
|
);
|
|||
|
|
// 运行APP
|
|||
|
|
runApp(const MyApp());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
class MyApp extends StatelessWidget {
|
|||
|
|
const MyApp({super.key});
|
|||
|
|
|
|||
|
|
// This widget is the root of your application.
|
|||
|
|
@override
|
|||
|
|
Widget build(BuildContext context) {
|
|||
|
|
return MaterialApp(
|
|||
|
|
title: 'WMS移动终端(徐工)',
|
|||
|
|
theme: ThemeData(
|
|||
|
|
colorScheme: ColorScheme.fromSeed(seedColor: ColorCommon.colorScheme),
|
|||
|
|
useMaterial3: true,
|
|||
|
|
extensions: [
|
|||
|
|
TDThemeData.fromJson('main', AppConfig.tdThemeConfig)!
|
|||
|
|
],
|
|||
|
|
),
|
|||
|
|
home: const Login(),
|
|||
|
|
);
|
|||
|
|
}
|
|||
|
|
}
|