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
Widget build(BuildContext context) {
const AMapWidget map = AMapWidget(
///SDK
privacyStatement: ConstConfig.amapPrivacyStatement,
apiKey: ConstConfig.amapApiKeys,
);
return Scaffold(
appBar: AppBar(
title: const Text(
@ -228,6 +223,19 @@ class _HomePageState extends State<HomePage> {
}
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,
),
);
}
}