mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 23:57:54 +00:00
27 lines
653 B
Dart
27 lines
653 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../routes/router.dart';
|
|
import 'root_controller.dart';
|
|
|
|
class RootView extends GetView<RootController> {
|
|
const RootView({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetRouterOutlet.builder(
|
|
builder: (context, delegate, current) {
|
|
return Scaffold(
|
|
body: GetRouterOutlet(
|
|
initialRoute: Routes.home,
|
|
// anchorRoute: '/',
|
|
// filterPages: (afterAnchor) {
|
|
// return afterAnchor.take(1);
|
|
// },
|
|
),
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|