9 changed files with 20 additions and 53 deletions
@ -1,9 +0,0 @@ |
|||||
import 'package:get/get.dart'; |
|
||||
import '../controllers/navigation_controller.dart'; |
|
||||
|
|
||||
class NavigationBinding extends Bindings { |
|
||||
@override |
|
||||
void dependencies() { |
|
||||
Get.lazyPut<NavigationController>(() => NavigationController()); |
|
||||
} |
|
||||
} |
|
||||
@ -1,5 +0,0 @@ |
|||||
import 'package:get/get.dart'; |
|
||||
|
|
||||
class NavigationController extends GetxController { |
|
||||
static NavigationController get to => Get.find(); //单例访问模式 |
|
||||
} |
|
||||
@ -1,17 +0,0 @@ |
|||||
import 'package:deep_voice/modules/navigation/controllers/navigation_controller.dart'; |
|
||||
import 'package:flutter/material.dart'; |
|
||||
import 'package:get/get.dart'; |
|
||||
|
|
||||
class NavigationView extends GetView<NavigationController> { |
|
||||
const NavigationView({Key? key}) : super(key: key); |
|
||||
|
|
||||
@override |
|
||||
Widget build(BuildContext context) { |
|
||||
return Scaffold( |
|
||||
appBar: AppBar(title: const Text('地图展示')), |
|
||||
body: Stack( |
|
||||
children: [], |
|
||||
), |
|
||||
); |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue