1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00
comunicmobile/lib/ui/tiles/menu_tile.dart

30 lines
601 B
Dart
Raw Normal View History

2019-04-23 09:48:49 +00:00
import 'package:flutter/material.dart';
/// Menu tile
///
/// @author Pierre HUBERT
class MenuTile extends StatelessWidget {
final String title;
final GestureTapCallback? onTap;
2019-04-23 09:48:49 +00:00
2022-03-11 16:09:37 +00:00
const MenuTile({required this.title, this.onTap});
2019-04-23 09:48:49 +00:00
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Divider(),
InkWell(
onTap: onTap,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Text(title),
),
)
],
);
}
}