Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
address_info_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 AddressInfoWidget extends StatelessWidget {
9 final String address;
10 final bool isLoading;
11
13 super.key,
14 required this.address,
15 required this.isLoading,
16 });
17
18 @override
19 Widget build(BuildContext context) {
20 return Container(
21 padding: EdgeInsets.all(16.w),
22 decoration: BoxDecoration(
23 color: Colors.white,
24 borderRadius: BorderRadius.circular(12.r),
25 boxShadow: [
26 BoxShadow(
27 color: Colors.black.withValues(alpha: 0.1),
28 blurRadius: 8,
29 offset: const Offset(0, 2),
30 ),
31 ],
32 ),
33 child: Row(
34 children: [
35 Icon(
36 FluentIcons.location_16_filled,
38 size: 17.sp,
39 ),
40 SizedBox(width: 12.w),
41 Expanded(
43 ? Row(
44 children: [
46 width: 16.w,
47 height: 16.w,
48 child: CircularProgressIndicator(
49 strokeWidth: 2,
50 valueColor: AlwaysStoppedAnimation<Color>(
52 ),
53 ),
54 ),
55 SizedBox(width: 12.w),
56 Text(
57 'scheduling.getting_address'.tr(),
58 style: TextStyle(
59 fontSize: 14.sp,
60 color: Colors.grey[600],
61 ),
62 ),
63 ],
64 )
65 : Text(
66 address,
67 style: TextStyle(
68 fontSize: 14.sp,
69 fontWeight: FontWeight.w500,
70 color: Colors.black87,
71 ),
72 maxLines: 2,
73 overflow: TextOverflow.ellipsis,
74 ),
75 ),
76 ],
77 ),
78 );
79 }
80}
static const lightGreen
final Widget child
override Widget build(BuildContext context)
final String address
const AddressInfoWidget({ super.key, required this.address, required this.isLoading, })
final EdgeInsets padding
class Partner String
final String address
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)