Added widgets
This commit is contained in:
parent
4fdcc89c9d
commit
126cf6e905
4 changed files with 122 additions and 9 deletions
36
lib/widgets/menu_widget.dart
Normal file
36
lib/widgets/menu_widget.dart
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:ocbo_esign_validator/widgets/text_widget.dart';
|
||||
|
||||
class MenuWidget extends StatelessWidget {
|
||||
final IconData? icon;
|
||||
final String text;
|
||||
final VoidCallback onPressed;
|
||||
|
||||
const MenuWidget({super.key, required this.icon, required this.text, required this.onPressed});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
onTap: onPressed,
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
color: Color.fromARGB(149, 16, 22, 28),
|
||||
border: Border.all(color: const Color(0xff202f3d)),
|
||||
),
|
||||
width: 120,
|
||||
height: 120,
|
||||
child: Column(
|
||||
children: [
|
||||
const Gap(4),
|
||||
Icon(icon, color: Colors.white, size: 42),
|
||||
const Gap(16),
|
||||
TextWidget(text: text, size: 14),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue