Compare commits

...

2 Commits

Author SHA1 Message Date
zhuce 2223d7165f bottom widget first commit 2024-02-23 18:20:48 +08:00
zhuce 2d9af261f9 middle widget second commit 2024-02-23 18:05:43 +08:00
1 changed files with 70 additions and 14 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(
@ -63,15 +58,23 @@ class _HomePageState extends State<HomePage> {
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const Row( Row(
children: [ children: [
Text( enabled
"接单中", ? const Text(
style: TextStyle( "接单中",
fontSize: 23, style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 23,
color: Colors.black), fontWeight: FontWeight.bold,
) color: Colors.black),
)
: const Text(
"停止接单",
style: TextStyle(
fontSize: 23,
fontWeight: FontWeight.bold,
color: Colors.grey),
)
], ],
), ),
Row( Row(
@ -173,6 +176,46 @@ 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),
),
],
)
],
),
) )
], ],
), ),
@ -180,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,
),
);
} }
} }