mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-23 16:45:27 +01:00
Init snippet page and store
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
17
lib/view/page/snippet/edit.dart
Normal file
17
lib/view/page/snippet/edit.dart
Normal 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(
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
17
lib/view/page/snippet/list.dart
Normal file
17
lib/view/page/snippet/list.dart
Normal 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(
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user