Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
bottom_content_panel.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3
4import 'location_header_widget.dart';
5import 'address_display_widget.dart';
6import 'continue_button_widget.dart';
7
8class BottomContentPanel extends StatelessWidget {
9 final bool isLoadingLocation;
10 final String currentAddress;
11 final VoidCallback onContinue;
12
14 super.key,
15 required this.isLoadingLocation,
16 required this.currentAddress,
17 required this.onContinue,
18 });
19
20 @override
21 Widget build(BuildContext context) {
22 return Container(
23 width: double.infinity,
24 decoration: BoxDecoration(
25 color: Colors.white,
26 borderRadius: BorderRadius.only(
27 topLeft: Radius.circular(20.r),
28 topRight: Radius.circular(20.r),
29 ),
30 boxShadow: [
31 BoxShadow(
32 color: Colors.black.withValues(alpha: 0.1),
33 offset: const Offset(0, -2),
34 blurRadius: 10,
35 spreadRadius: 0,
36 ),
37 ],
38 ),
39 child: Padding(
40 padding: EdgeInsets.all(24.w),
42 crossAxisAlignment: CrossAxisAlignment.start,
43 mainAxisSize: MainAxisSize.min,
44 children: [
46 SizedBox(height: 16.h),
50 ),
51 SizedBox(height: 16.h),
55 ),
56 ],
57 ),
58 ),
59 );
60 }
61}
final VoidCallback onContinue
final VoidCallback onPressed
const ContinueButtonWidget({ super.key, required this.isLoadingLocation, required this.onPressed, })
final Widget child
const LocationHeaderWidget({super.key})
override Widget build(BuildContext context)
const AddressDisplayWidget({ super.key, required this.isLoadingLocation, required this.currentAddress, })
final EdgeInsets padding
const BottomContentPanel({ super.key, required this.isLoadingLocation, required this.currentAddress, required this.onContinue, })
class Partner String
style SizedBox(height:2.h)
style Column(crossAxisAlignment:CrossAxisAlignment.end, children:[Container(padding:EdgeInsets.symmetric(horizontal:8.w, vertical:4.h), decoration:BoxDecoration(color:ColorPalette.tiffanyBlue.withValues(alpha:0.1), borderRadius:BorderRadius.circular(12),), child:Text(collection.type ?? '', style:Theme.of(context).textTheme.bodySmall?.copyWith(color:ColorPalette.tiffanyBlue, fontWeight:FontWeight.bold,),),),],)