mirror of
https://github.com/johrpan/christmas_cats.git
synced 2025-10-28 19:27:25 +01:00
31 lines
610 B
Dart
31 lines
610 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class MenuEntry extends StatelessWidget {
|
|
final String text;
|
|
final void Function() onTap;
|
|
|
|
MenuEntry({
|
|
@required this.text,
|
|
this.onTap,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
child: Center(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Text(
|
|
text,
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 40.0,
|
|
height: 1.1,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
onTap: onTap,
|
|
);
|
|
}
|
|
}
|