Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
select_all_header.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3
4class SelectAllHeader extends StatelessWidget {
5 final bool isSelected;
6 final ValueChanged<bool?> onChanged;
7
9 super.key,
10 required this.isSelected,
11 required this.onChanged,
12 });
13
14 @override
15 Widget build(BuildContext context) {
16 return Padding(
17 padding: EdgeInsets.symmetric(horizontal: 15.sp, vertical: 16.sp),
18 child: Row(
19 children: [
21 width: 24,
22 height: 24,
23 child: Checkbox(
26 shape: RoundedRectangleBorder(
27 borderRadius: BorderRadius.circular(4),
28 ),
29 side: BorderSide(width: 1.5, color: Colors.grey[400]!),
30 ),
31 ),
32 SizedBox(width: 12.sp),
33 Text(
34 'Select all',
35 style: TextStyle(
36 fontSize: 16.sp,
37 fontWeight: FontWeight.w500,
38 color: Colors.grey[700],
39 ),
40 ),
41 ],
42 ),
43 );
44 }
45}
const SelectAllHeader({ super.key, required this.isSelected, required this.onChanged, })
final Widget child
final ValueChanged< int?> onChanged
override Widget build(BuildContext context)
final EdgeInsets padding
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)