Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
note_field.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';
4
5import '../../../../../../core/ui/theme/color_palette.dart';
6
7class NoteField extends StatelessWidget {
8 final void Function(String)? onChanged;
9
10 const NoteField({super.key, required this.onChanged});
11
12 @override
13 Widget build(BuildContext context) {
14 return Container(
15 margin: EdgeInsets.symmetric(horizontal: 16.sp),
16 padding: EdgeInsets.all(20.sp),
17 decoration: BoxDecoration(
18 color: Colors.white,
19 borderRadius: BorderRadius.circular(20),
20 boxShadow: [
21 BoxShadow(
22 color: Colors.black.withValues(alpha:0.05),
23 blurRadius: 10,
24 offset: const Offset(0, 4),
25 ),
26 ],
27 ),
29 crossAxisAlignment: CrossAxisAlignment.start,
30 children: [
31 Text(
32 'information.additional_notes'.tr(),
33 style: Theme.of(context).textTheme.titleSmall?.copyWith(
35 ),
36 ),
37 SizedBox(height: 12.sp),
38 TextField(
40 decoration: InputDecoration(
41 hintText: 'information.note_hint'.tr(),
42 hintStyle: TextStyle(color: ColorPalette.grey.withValues(alpha:0.8)),
43 border: OutlineInputBorder(
44 borderRadius: BorderRadius.circular(12),
45 borderSide: BorderSide(color: ColorPalette.grey.withValues(alpha:0.2)),
46 ),
47 enabledBorder: OutlineInputBorder(
48 borderRadius: BorderRadius.circular(12),
49 borderSide: const BorderSide(color: ColorPalette.lightGrey),
50 ),
51 disabledBorder: OutlineInputBorder(
52 borderRadius: BorderRadius.circular(12),
53 borderSide: const BorderSide(color: ColorPalette.lightGrey),
54 ),
55 focusedBorder: OutlineInputBorder(
56 borderRadius: BorderRadius.circular(12),
57 borderSide: const BorderSide(color: ColorPalette.lightGreen),
58 ),
59 filled: true,
60 fillColor: Colors.grey[50],
61 ),
62 maxLines: 4,
63 ),
64 ],
65 ),
66 );
67 }
68}
static const lightGreen
static const lightGrey
static const grey
const NoteField({super.key, required this.onChanged})
final Widget child
final ValueChanged< int?> onChanged
override Widget build(BuildContext context)
final void Function(String)? onChanged
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,),),),],)