33 lines
837 B
Dart
33 lines
837 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
|
|
class MenuWidget extends StatelessWidget {
|
|
final String? text;
|
|
final IconData? icon;
|
|
|
|
const MenuWidget({
|
|
super.key,
|
|
this.text,
|
|
this.icon,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: MediaQuery.of(context).size.width - 32,
|
|
height: 100,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(10),
|
|
color: Colors.grey[200],
|
|
),
|
|
child: Row(mainAxisAlignment: MainAxisAlignment.start, children: [
|
|
const Gap(32),
|
|
Icon(icon, size: 32, color: const Color.fromRGBO(34, 51, 69, 1)),
|
|
const Gap(120),
|
|
Text(
|
|
text ?? 'Data',
|
|
style: TextStyle(fontSize: 16),
|
|
)
|
|
]));
|
|
}
|
|
}
|