bottom widget first commit

main
zhuce 2024-02-23 18:20:48 +08:00
parent 2d9af261f9
commit 2223d7165f
1 changed files with 14 additions and 6 deletions

View File

@ -17,11 +17,6 @@ class _HomePageState extends State<HomePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
const AMapWidget map = AMapWidget(
///SDK
privacyStatement: ConstConfig.amapPrivacyStatement,
apiKey: ConstConfig.amapApiKeys,
);
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: const Text( title: const Text(
@ -228,6 +223,19 @@ class _HomePageState extends State<HomePage> {
} }
Widget buildBottomWidget() { Widget buildBottomWidget() {
return Container(); const AMapWidget map = AMapWidget(
///SDK
privacyStatement: ConstConfig.amapPrivacyStatement,
apiKey: ConstConfig.amapApiKeys,
);
return Expanded(
child: Container(
margin: const EdgeInsets.only(top: 10,bottom: 10),
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(5))),
child: map,
),
);
} }
} }