Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
empty_content.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 '../theme/color_palette.dart';
6
7class EmptyContent extends StatelessWidget {
8 final String text;
9 const EmptyContent({super.key, required this.text});
10
11 @override
12 Widget build(BuildContext context) {
13 return Center(
14 child: Padding(
15 padding: const EdgeInsets.all(10.0),
17 mainAxisAlignment: MainAxisAlignment.center,
18 children: [
19 Icon(
20 FluentIcons.box_dismiss_20_regular,
21 size: 100.sp,
23 ),
24 SizedBox(height: 10.sp),
25 Text(
26 text,
27 style: Theme.of(context)
28 .textTheme
29 .titleMedium!
30 .copyWith(
32 fontWeight: FontWeight.w500,
33 ),
34 ),
35 ],
36 ),
37 ),
38 );
39 }
40}
static const grey
final String text
final Widget child
override Widget build(BuildContext context)
final EdgeInsets padding
const EmptyContent({super.key, required this.text})
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,),),),],)