bottom widget first commit
parent
2d9af261f9
commit
2223d7165f
|
@ -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,
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue