Init snippet page and store

This commit is contained in:
LollipopKit
2021-10-31 15:22:05 +08:00
parent 9f3f07388e
commit 2eb6e19a86
8 changed files with 114 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
import 'package:after_layout/after_layout.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:toolbox/core/analysis.dart';
import 'package:toolbox/core/build_mode.dart';
import 'package:toolbox/core/route.dart';
import 'package:toolbox/core/update.dart';
import 'package:toolbox/core/utils.dart';
@@ -90,8 +92,13 @@ class _MyHomePageState extends State<MyHomePage>
applicationIcon: _buildIcon(),
aboutBoxChildren: const [
UrlText(
text: '\nMade with ❤️ by https://github.com/LollipopKit', replace: 'LollipopKit'),
UrlText(text: '\nThanks https://github.com/RainSunMe for participating in the test.\n\nAll rights reserved.', replace: 'RainSunMe',),
text: '\nMade with ❤️ by https://github.com/LollipopKit',
replace: 'LollipopKit'),
UrlText(
text:
'\nThanks https://github.com/RainSunMe for participating in the test.\n\nAll rights reserved.',
replace: 'RainSunMe',
),
],
),
],
@@ -118,5 +125,6 @@ class _MyHomePageState extends State<MyHomePage>
await GetIt.I.allReady();
await locator<ServerProvider>().loadLocalData();
await doUpdate(context);
await Analysis.init(BuildMode.isDebug);
}
}

View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class SnappetEditPage extends StatefulWidget {
const SnappetEditPage({ Key? key }) : super(key: key);
@override
_SnappetEditPageState createState() => _SnappetEditPageState();
}
class _SnappetEditPageState extends State<SnappetEditPage> {
@override
Widget build(BuildContext context) {
return Container(
);
}
}

View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class SnappetListPage extends StatefulWidget {
const SnappetListPage({ Key? key }) : super(key: key);
@override
_SnappetListPageState createState() => _SnappetListPageState();
}
class _SnappetListPageState extends State<SnappetListPage> {
@override
Widget build(BuildContext context) {
return Container(
);
}
}