Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
continue_button_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';
4
5import '../../../../../../core/ui/theme/color_palette.dart';
6
7class ContinueButtonWidget extends StatelessWidget {
8 final bool isLoadingLocation;
9 final VoidCallback onPressed;
10
12 super.key,
13 required this.isLoadingLocation,
14 required this.onPressed,
15 });
16
17 @override
18 Widget build(BuildContext context) {
19 return SizedBox(
20 width: double.infinity,
21 child: ElevatedButton(
23 style: ElevatedButton.styleFrom(
24 backgroundColor: ColorPalette.lightGreen,
25 foregroundColor: Colors.white,
26 padding: EdgeInsets.symmetric(vertical: 16.h),
27 shape: RoundedRectangleBorder(
28 borderRadius: BorderRadius.circular(12.r),
29 ),
30 elevation: 0,
31 disabledBackgroundColor: ColorPalette.lightGrey,
32 ),
33 child: Text(
34 'scheduling.continue'.tr(),
35 style: TextStyle(
36 fontSize: 16.sp,
37 fontWeight: FontWeight.w600,
38 ),
39 ),
40 ),
41 );
42 }
43}
static const lightGreen
static const lightGrey
final VoidCallback onPressed
const ContinueButtonWidget({ super.key, required this.isLoadingLocation, required this.onPressed, })
final Widget child
override Widget build(BuildContext context)
final EdgeInsets padding
final VoidCallback onPressed
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)