mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 05:43:41 +00:00
Refactor project in get-cli standard (#80)
* refactor project in get-cli standard * use local trackers when github is not connectable upgrade stylish_bottom_bar to 1.0.0 responsive view for home_view treeview for file_list_vie fluent ui integrating * improve responsive view. treeView add light theme.fix overflow bugs * responsive view,treeView,file select downloaded and downloading pages file extension icons fix some minor bugs * use local trackers when github is not connectable upgrade stylish_bottom_bar to 1.0.0 responsive view for home_view treeview for file_list_vie fluent ui integrating * improve responsive view. treeView add light theme.fix overflow bugs * bottom bar index fix * refactor project in get-cli standard --------- Co-authored-by: wuke2022 <[email protected]>
This commit is contained in:
1 parent
9b1ed15fea
commit
74c24ad860
44 files changed
+1025
-360
No files matched your search
@@ -0,0 +1,68 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../modules/create/bindings/create_binding.dart';
|
||||
import '../modules/create/views/create_view.dart';
|
||||
import '../modules/downloaded/bindings/downloaded_binding.dart';
|
||||
import '../modules/downloaded/views/downloaded_view.dart';
|
||||
import '../modules/downloading/bindings/downloading_binding.dart';
|
||||
import '../modules/downloading/views/downloading_view.dart';
|
||||
import '../modules/home/bindings/home_binding.dart';
|
||||
import '../modules/home/views/home_view.dart';
|
||||
import '../modules/root/bindings/root_binding.dart';
|
||||
import '../modules/root/views/root_view.dart';
|
||||
import '../modules/setting/bindings/setting_binding.dart';
|
||||
import '../modules/setting/views/setting_view.dart';
|
||||
|
||||
part 'app_routes.dart';
|
||||
|
||||
class AppPages {
|
||||
AppPages._();
|
||||
|
||||
static const INITIAL = Routes.ROOT;
|
||||
|
||||
static final routes = [
|
||||
GetPage(
|
||||
name: _Paths.ROOT,
|
||||
participatesInRootNavigator: true,
|
||||
transition: Transition.topLevel,
|
||||
// preventDuplicates: true,
|
||||
page: () => const RootView(),
|
||||
binding: RootBinding(),
|
||||
children: [
|
||||
GetPage(
|
||||
name: _Paths.HOME,
|
||||
// participatesInRootNavigator: true,
|
||||
// transition: Transition.topLevel,
|
||||
// preventDuplicates: true,
|
||||
page: () => const HomeView(),
|
||||
binding: HomeBinding(),
|
||||
children: [
|
||||
GetPage(
|
||||
name: _Paths.DOWNLOADED,
|
||||
transition: Transition.noTransition,
|
||||
page: () => const DownloadedView(),
|
||||
binding: DownloadedBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.DOWNLOADING,
|
||||
transition: Transition.noTransition,
|
||||
page: () => const DownloadingView(),
|
||||
binding: DownloadingBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.SETTING,
|
||||
transition: Transition.noTransition,
|
||||
page: () => const SettingView(),
|
||||
binding: SettingBinding(),
|
||||
),
|
||||
]),
|
||||
GetPage(
|
||||
name: _Paths.CREATE,
|
||||
transition: Transition.downToUp,
|
||||
// preventDuplicates: true,
|
||||
page: () => CreateView(),
|
||||
binding: CreateBinding(),
|
||||
),
|
||||
]),
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
part of 'app_pages.dart';
|
||||
// DO NOT EDIT. This is code generated via package:get_cli/get_cli.dart
|
||||
|
||||
abstract class Routes {
|
||||
Routes._();
|
||||
static const DOWNLOADED = _Paths.HOME + _Paths.DOWNLOADED;
|
||||
static const DOWNLOADING = _Paths.HOME + _Paths.DOWNLOADING;
|
||||
static const CREATE = _Paths.CREATE;
|
||||
static const ROOT = _Paths.ROOT;
|
||||
static const SETTING = _Paths.HOME + _Paths.SETTING;
|
||||
static const HOME = _Paths.HOME;
|
||||
}
|
||||
|
||||
abstract class _Paths {
|
||||
_Paths._();
|
||||
static const DOWNLOADED = '/downloaded';
|
||||
static const DOWNLOADING = '/downloading';
|
||||
static const CREATE = '/create';
|
||||
static const ROOT = '/';
|
||||
static const SETTING = '/setting';
|
||||
static const HOME = '/home';
|
||||
}
|
||||
Reference in new issue
Block a user