chore: Remove workaround of initialUrl
This commit is contained in:
parent
1ab089ef0d
commit
e607bc2c21
2 changed files with 3 additions and 8 deletions
|
|
@ -28,16 +28,10 @@ import 'package:vrouter/vrouter.dart';
|
|||
|
||||
class AppRoutes {
|
||||
final bool columnMode;
|
||||
final String initialUrl;
|
||||
|
||||
AppRoutes(this.columnMode, {this.initialUrl});
|
||||
AppRoutes(this.columnMode);
|
||||
|
||||
List<VRouteElement> get routes => [
|
||||
if (initialUrl != null && initialUrl != '/')
|
||||
VRouteRedirector(
|
||||
path: '/',
|
||||
redirectTo: initialUrl,
|
||||
),
|
||||
..._homeRoutes,
|
||||
if (columnMode) ..._tabletRoutes,
|
||||
if (!columnMode) ..._mobileRoutes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue