Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
biometric_button.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),
20 Theme.of(context).colorScheme.secondary.withOpacity(0.11),
21 overlayColor: Theme.of(context).primaryColor,
22 shape: RoundedRectangleBorder(
23 borderRadius: BorderRadius.circular(800),
24 ),
25 ),
27 child: Icon(
28 icon,
29 color: Theme.of(context).iconTheme.color,
30 ),
31 );
32 }
33}
final Function() onPressed
final IconData icon
final VoidCallback onPressed
const BiometricButton({ super.key, required this.icon, required this.onPressed, })
final Widget child
override Widget build(BuildContext context)
Definition app_view.dart:19
final Color backgroundColor