mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
bookedit bugfix and hide quik action
This commit is contained in:
@@ -118,6 +118,7 @@ class _BookmarkEditDialog extends State<BookmarkEditDialog> {
|
|||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if (!PlatformUtil.isPC()) {
|
||||||
list.add(Container(
|
list.add(Container(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
@@ -137,6 +138,7 @@ class _BookmarkEditDialog extends State<BookmarkEditDialog> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
}
|
||||||
|
|
||||||
list.add(Container(
|
list.add(Container(
|
||||||
margin: EdgeInsets.only(
|
margin: EdgeInsets.only(
|
||||||
@@ -195,6 +197,7 @@ class _BookmarkEditDialog extends State<BookmarkEditDialog> {
|
|||||||
await BookmarkDB.update(bookmark);
|
await BookmarkDB.update(bookmark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!PlatformUtil.isPC()) {
|
||||||
try {
|
try {
|
||||||
var allQas = await BookmarkDB.allQas();
|
var allQas = await BookmarkDB.allQas();
|
||||||
List<ShortcutItem> qas = [];
|
List<ShortcutItem> qas = [];
|
||||||
@@ -210,6 +213,7 @@ class _BookmarkEditDialog extends State<BookmarkEditDialog> {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
print(e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
await bookmarkProvider.reload();
|
await bookmarkProvider.reload();
|
||||||
RouterUtil.back(context);
|
RouterUtil.back(context);
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ Future<void> main() async {
|
|||||||
|
|
||||||
await doInit();
|
await doInit();
|
||||||
|
|
||||||
|
mediaDataCache = MediaDataCache();
|
||||||
await bookmarkProvider.init();
|
await bookmarkProvider.init();
|
||||||
|
|
||||||
runApp(MyApp());
|
runApp(MyApp());
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ class _IndexRouter extends CustState<IndexRouter>
|
|||||||
@override
|
@override
|
||||||
Widget doBuild(BuildContext context) {
|
Widget doBuild(BuildContext context) {
|
||||||
var themeData = Theme.of(context);
|
var themeData = Theme.of(context);
|
||||||
|
mediaDataCache.update(context);
|
||||||
|
|
||||||
// if (PlatformUtil.isAndroid()) {
|
// if (PlatformUtil.isAndroid()) {
|
||||||
// WidgetsBinding.instance.addPostFrameCallback((_) async {
|
// WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
// var intent = await getInitialIntent();
|
// var intent = await getInitialIntent();
|
||||||
|
|||||||
Reference in New Issue
Block a user