36 lines
1,009 B
Dart
36 lines
1,009 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:ocbo_esign_validator/widgets/text_widget.dart';
|
|
|
|
class CircleWidget extends StatelessWidget {
|
|
final IconData? icon;
|
|
final String text;
|
|
final VoidCallback onPressed;
|
|
|
|
const CircleWidget({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(16),
|
|
color: Colors.white10,
|
|
border: Border.all(color: const Color.fromARGB(77, 255, 255, 255)),
|
|
),
|
|
width: 120,
|
|
height: 120,
|
|
child: Column(
|
|
children: [
|
|
const Gap(8),
|
|
Icon(icon, color: Colors.white, size: 32),
|
|
const Gap(8),
|
|
TextWidget(text: text, size: 16),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|