Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
address_display_widget.dart
Go to the documentation of this file.
1import 'package:easy_localization/easy_localization.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
4import 'package:fluentui_system_icons/fluentui_system_icons.dart';
5
6import '../../../../../../core/ui/theme/color_palette.dart';
7
8class AddressDisplayWidget extends StatelessWidget {
9 final bool isLoadingLocation;
11
13 super.key,
14 required this.isLoadingLocation,
15 required this.currentAddress,
16 });
17
18 @override
19 Widget build(BuildContext context) {
20 return Container(
21 padding: EdgeInsets.all(16.w),
22 decoration: BoxDecoration(
24 borderRadius: BorderRadius.circular(12.r),
25 border: Border.all(
27 width: 1,
28 ),
29 ),
30 child: Row(
31 children: [
32 Icon(
33 FluentIcons.location_16_filled,
35 size: 15.sp,
36 ),
37 SizedBox(width: 12.w),
38 Expanded(
40 ? Row(
41 children: [
43 width: 16.w,
44 height: 16.w,
45 child: CircularProgressIndicator(
46 strokeWidth: 2,
47 valueColor: AlwaysStoppedAnimation<Color>(
49 ),
50 ),
51 ),
52 SizedBox(width: 8.w),
53 Text(
54 'scheduling.getting_current_location'.tr(),
55 style: TextStyle(
56 fontSize: 14.sp,
58 fontWeight: FontWeight.w500,
59 ),
60 ),
61 ],
62 )
63 : Text(
65 style: TextStyle(
66 fontSize: 14.sp,
68 fontWeight: FontWeight.w600,
69 ),
70 maxLines: 2,
71 overflow: TextOverflow.ellipsis,
72 ),
73 ),
74 ],
75 ),
76 );
77 }
78}
static const darkGrey
static const lightGreen
static const black
static const lightGrey
static const antiFlashWhite
final Widget child
override Widget build(BuildContext context)
const AddressDisplayWidget({ super.key, required this.isLoadingLocation, required this.currentAddress, })
final EdgeInsets padding
class Partner String
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)