Skip to content

Commit

Permalink
rm: fullscreen mode (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
lollipopkit committed Feb 15, 2024
1 parent d605db5 commit 2c79c25
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 454 deletions.
5 changes: 1 addition & 4 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:toolbox/data/res/build_data.dart';
import 'package:toolbox/data/res/color.dart';
import 'package:toolbox/data/res/rebuild.dart';
import 'package:toolbox/data/res/store.dart';
import 'package:toolbox/view/page/full_screen.dart';
import 'package:toolbox/view/page/home.dart';

class MyApp extends StatelessWidget {
Expand Down Expand Up @@ -76,9 +75,7 @@ class MyApp extends StatelessWidget {
themeMode: themeMode,
theme: light,
darkTheme: tMode < 3 ? dark : _getAmoledTheme(dark),
home: Stores.setting.fullScreen.fetch()
? const FullScreenPage()
: const HomePage(),
home: const HomePage(),
);
}
}
Expand Down
7 changes: 3 additions & 4 deletions lib/core/route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import 'package:toolbox/view/page/storage/local.dart';
import '../data/model/server/snippet.dart';
import '../view/page/debug.dart';
import '../view/page/editor.dart';
import '../view/page/full_screen.dart';
import '../view/page/process.dart';
import '../view/page/server/edit.dart';
import '../view/page/server/tab.dart';
Expand Down Expand Up @@ -175,9 +174,9 @@ class AppRoute {
'editor');
}

static AppRoute fullscreen({Key? key}) {
return AppRoute(FullScreenPage(key: key), 'fullscreen');
}
// static AppRoute fullscreen({Key? key}) {
// return AppRoute(FullScreenPage(key: key), 'fullscreen');
// }

static AppRoute home({Key? key}) {
return AppRoute(HomePage(key: key), 'home');
Expand Down
24 changes: 12 additions & 12 deletions lib/data/store/setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ class SettingStore extends PersistentStore {
Defaults.editorDarkTheme,
);

late final fullScreen = property(
'fullScreen',
false,
);
// late final fullScreen = property(
// 'fullScreen',
// false,
// );

late final fullScreenJitter = property(
'fullScreenJitter',
true,
);
// late final fullScreenJitter = property(
// 'fullScreenJitter',
// true,
// );

late final fullScreenRotateQuarter = property(
'fullScreenRotateQuarter',
1,
);
// late final fullScreenRotateQuarter = property(
// 'fullScreenRotateQuarter',
// 1,
// );

late final keyboardType = property(
'keyboardType',
Expand Down
Loading

0 comments on commit 2c79c25

Please sign in to comment.