mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
30 lines
601 B
Dart
30 lines
601 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// Menu tile
|
|
///
|
|
/// @author Pierre HUBERT
|
|
|
|
class MenuTile extends StatelessWidget {
|
|
final String title;
|
|
final GestureTapCallback? onTap;
|
|
|
|
const MenuTile({required this.title, this.onTap});
|
|
|
|
@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),
|
|
),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|