Compare commits
No commits in common. "2223d7165f38a6b14871cdf14faa2ba622a9dfb4" and "3e76f59897edaa3e8a3956effc1da0e298b95a29" have entirely different histories.
2223d7165f
...
3e76f59897
|
@ -17,6 +17,11 @@ 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(
|
||||||
|
@ -58,23 +63,15 @@ class _HomePageState extends State<HomePage> {
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
const Row(
|
||||||
children: [
|
children: [
|
||||||
enabled
|
Text(
|
||||||
? const Text(
|
|
||||||
"接单中",
|
"接单中",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 23,
|
fontSize: 23,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: Colors.black),
|
color: Colors.black),
|
||||||
)
|
)
|
||||||
: const Text(
|
|
||||||
"停止接单",
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 23,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: Colors.grey),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
@ -176,46 +173,6 @@ class _HomePageState extends State<HomePage> {
|
||||||
style: TextStyle(fontSize: 12, color: Color(0xFF9B9B9B)),
|
style: TextStyle(fontSize: 12, color: Color(0xFF9B9B9B)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
Container(
|
|
||||||
child: Row(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
margin: const EdgeInsets.only(right: 10),
|
|
||||||
child: const Icon(
|
|
||||||
Icons.circle,
|
|
||||||
size: 5,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const Text(
|
|
||||||
"宁波市鄞州区下应街道湖下路286号",
|
|
||||||
style: TextStyle(fontWeight: FontWeight.bold),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
const Row(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.baseline,
|
|
||||||
textBaseline: TextBaseline.alphabetic,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
"¥",
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 13,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
"50",
|
|
||||||
style:
|
|
||||||
TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -223,19 +180,6 @@ class _HomePageState extends State<HomePage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget buildBottomWidget() {
|
Widget buildBottomWidget() {
|
||||||
const AMapWidget map = AMapWidget(
|
return Container();
|
||||||
///必须正确设置的合规隐私声明,否则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