remelem mukszik
This commit is contained in:
23
filcnaplo_mobile_ui/lib/common/dialog_button.dart
Executable file
23
filcnaplo_mobile_ui/lib/common/dialog_button.dart
Executable file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DialogButton extends StatelessWidget {
|
||||
const DialogButton({Key? key, required this.label, this.onTap}) : super(key: key);
|
||||
|
||||
final String label;
|
||||
final Function()? onTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return RawMaterialButton(
|
||||
onPressed: onTap,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.0)),
|
||||
child: Text(
|
||||
label.toUpperCase(),
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user