initial commit
This commit is contained in:
38
lib/main.dart
Normal file
38
lib/main.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import "package:prod/views/editors.dart";
|
||||
import "package:prod/views/home.dart";
|
||||
import "package:yaru/yaru.dart";
|
||||
import "package:provider/provider.dart";
|
||||
import "package:prod/models/globalModel.dart";
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(context) {
|
||||
return ChangeNotifierProvider<GlobalModel>(
|
||||
lazy: false,
|
||||
create: (context) => GlobalModel(),
|
||||
builder: (context, child) {
|
||||
return YaruTheme(
|
||||
builder: (context, yaru, child) {
|
||||
return MaterialApp(
|
||||
theme: yaru.theme,
|
||||
themeMode: .system,
|
||||
darkTheme: yaru.darkTheme,
|
||||
routes: {
|
||||
"/": (context) => HomePage(),
|
||||
"/editors": (context) => EditorEditor(),
|
||||
},
|
||||
initialRoute: "/",
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user