Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
contact_section.dart
Go to the documentation of this file.
1import 'package:fluentui_system_icons/fluentui_system_icons.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
4
5import '../../../../../../core/ui/theme/color_palette.dart';
6
7class ContactSection extends StatelessWidget {
9 final void Function()? onPressed;
10
11 const ContactSection({super.key, required this.fullName, required this.onPressed});
12
13 @override
14 Widget build(BuildContext context) {
15 return Container(
16 padding: EdgeInsets.all(20.sp),
17 decoration: BoxDecoration(
19 borderRadius: BorderRadius.circular(24),
20 boxShadow: [
21 BoxShadow(
22 color: ColorPalette.black.withValues(alpha:0.05),
23 blurRadius: 10,
24 offset: const Offset(0, 2),
25 ),
26 ],
27 ),
28 child: Row(
29 children: [
30 Container(
31 padding: EdgeInsets.all(12.sp),
32 decoration: BoxDecoration(
33 color: ColorPalette.lightGreen.withValues(alpha:0.1),
34 borderRadius: BorderRadius.circular(16),
35 ),
36 child: Icon(
37 FluentIcons.person_12_filled,
39 size: 24.sp,
40 ),
41 ),
42 SizedBox(width: 16.w),
43 Expanded(
45 crossAxisAlignment: CrossAxisAlignment.start,
46 children: [
47 Text(
48 'Contact name',
49 style: TextStyle(
50 fontSize: 14.sp,
52 ),
53 ),
54 SizedBox(height: 4.h),
55 Text(
57 style: Theme.of(context).textTheme.displaySmall?.copyWith(
59 fontWeight: FontWeight.w400,
60 ),
61 ),
62 ],
63 ),
64 ),
65 ElevatedButton(
66 style: ElevatedButton.styleFrom(
67 shape: RoundedRectangleBorder(
68 borderRadius: BorderRadius.circular(16),
69 ),
70 padding: EdgeInsets.symmetric(
71 horizontal: 12.w,
72 vertical: 12.h,
73 ),
74 ),
76 child: const Icon(FluentIcons.call_24_filled),
77 ),
78 ],
79 ),
80 );
81 }
82}
static const lightGreen
static const black
static const white
static const darkGreen
static const grey
final VoidCallback onPressed
const ContactSection({super.key, required this.fullName, required this.onPressed})
final Widget child
override Widget build(BuildContext context)
final String fullName
final void Function()? onPressed
final EdgeInsets padding
class Partner String
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
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,),),),],)