@@ -1,5 +1,5 @@
|
||||
import 'dart:ui';
|
||||
|
||||
class AppColors {
|
||||
static const Color primaryColor = Color(0xFF4FDBFF); // 微信绿
|
||||
import 'dart:ui';
|
||||
|
||||
class AppColors {
|
||||
static const Color primaryColor = Color(0xFF4FDBFF); // 微信绿
|
||||
}
|
||||
@@ -1,26 +1,26 @@
|
||||
|
||||
|
||||
import 'package:app/features/auth/pages/login_page.dart';
|
||||
import 'package:app/features/home/pages/index_page.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../../features/home/pages/main_page.dart';
|
||||
|
||||
final appRouter = GoRouter(
|
||||
initialLocation: '/auth/login',
|
||||
routes: [
|
||||
GoRoute(path: '/auth/login', builder: (context, state) => const LoginPage()),
|
||||
ShellRoute(
|
||||
builder: (context, state, child) {
|
||||
return MainPage(child: child);
|
||||
},
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/',
|
||||
builder: (context, state) => const IndexPage()
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
|
||||
|
||||
|
||||
import 'package:app/features/auth/pages/login_page.dart';
|
||||
import 'package:app/features/home/pages/index_page.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../../features/home/pages/main_page.dart';
|
||||
|
||||
final appRouter = GoRouter(
|
||||
initialLocation: '/auth/login',
|
||||
routes: [
|
||||
GoRoute(path: '/auth/login', builder: (context, state) => const LoginPage()),
|
||||
ShellRoute(
|
||||
builder: (context, state, child) {
|
||||
return MainPage(child: child);
|
||||
},
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/',
|
||||
builder: (context, state) => const IndexPage()
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
|
||||
);
|
||||
Reference in New Issue
Block a user