重构example项目结构

This commit is contained in:
Kuloud
2023-12-30 07:54:59 +08:00
parent f8e58fcb35
commit 5abe4d7f6d
30 changed files with 740 additions and 547 deletions

View File

@ -1,24 +1,15 @@
import 'package:amap_map/amap_map.dart';
import 'package:x_amap_base/x_amap_base.dart';
import 'package:amap_map_example/base_page.dart';
import 'package:amap_map_example/const_config.dart';
import 'package:flutter/material.dart';
class LimitMapBoundsPage extends BasePage {
LimitMapBoundsPage(String title, String subTitle) : super(title, subTitle);
@override
Widget build(BuildContext context) => _Body();
}
class _Body extends StatefulWidget {
_Body({Key? key}) : super(key: key);
class LimitMapBoundsPage extends StatefulWidget {
LimitMapBoundsPage({Key? key}) : super(key: key);
@override
_BodyState createState() => _BodyState();
}
class _BodyState extends State<_Body> {
class _BodyState extends State<LimitMapBoundsPage> {
@override
Widget build(BuildContext context) {
final AMapWidget amap = AMapWidget(