重构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,23 +1,14 @@
import 'package:amap_map/amap_map.dart';
import 'package:amap_map_example/base_page.dart';
import 'package:amap_map_example/const_config.dart';
import 'package:flutter/material.dart';
class MinMaxZoomDemoPage extends BasePage {
MinMaxZoomDemoPage(String title, String subTitle) : super(title, subTitle);
@override
Widget build(BuildContext context) => _Body();
}
class _Body extends StatefulWidget {
_Body({Key? key}) : super(key: key);
class MinMaxZoomDemoPage extends StatefulWidget {
MinMaxZoomDemoPage({Key? key}) : super(key: key);
@override
_BodyState createState() => _BodyState();
}
class _BodyState extends State<_Body> {
class _BodyState extends State<MinMaxZoomDemoPage> {
final double _minZoom = 10;
final double _maxZoom = 15;
String? _currentZoom;