1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-11-03 11:44:18 +00:00

Can sign out of the application

This commit is contained in:
2019-04-23 11:48:49 +02:00
parent 07d668eb59
commit d10df9dd7a
5 changed files with 108 additions and 8 deletions

View File

@@ -0,0 +1,29 @@
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}) : assert(title != null);
@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),
),
)
],
);
}
}