Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
biomitric_auth_buttons.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3
4class BiometricButton extends StatelessWidget {
6 super.key,
7 required this.icon,
8 required this.onPressed,
9 });
10
11 final IconData icon;
13
14 @override
15 Widget build(BuildContext context) {
16 return ElevatedButton(
17 style: ElevatedButton.styleFrom(
18 padding: EdgeInsets.all(17.sp),
19 backgroundColor: Theme.of(context).colorScheme.secondary.withValues(alpha: 0.11),
20 overlayColor: Theme.of(context).primaryColor,
21 shape: RoundedRectangleBorder(
22 borderRadius: BorderRadius.circular(800),
23 ),
24 ),
26 child: Icon(
27 icon,
28 color: Theme.of(context).iconTheme.color,
29 ),
30 );
31 }
32}
final Function() onPressed
final VoidCallback onPressed
const BiometricButton({ super.key, required this.icon, required this.onPressed, })
final Widget child
override Widget build(BuildContext context)
final EdgeInsets padding