Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void _settingModalBottomSheet(context) {
- showModalBottomSheet(
- context: context,
- builder: (BuildContext bc) {
- return Container(
- child: new Wrap(
- children: <Widget>[
- ListTile(
- leading: Icon(
- FontAwesomeIcons.userEdit,
- color: COLOR_UNETVALE,
- ),
- title: Text('Editar meus dados'),
- subtitle: Text(
- "Permite você atualizar seus dados",
- style: TextStyle(fontSize: 10),
- ),
- onTap: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => EditarMeusDados()),
- );
- }),
- ListTile(
- leading: Icon(FontAwesomeIcons.download, color: COLOR_UNETVALE),
- title: Text('Baixar meu contrato'),
- subtitle: Text(
- "Possibilita baixar o contrato referente a sua conta",
- style: TextStyle(fontSize: 10),
- ),
- onTap: () {
- _launchURL();
- },
- ),
- ListTile(
- leading:
- Icon(FontAwesomeIcons.signOutAlt, color: COLOR_UNETVALE),
- title: Text('Desconectar minha conta'),
- subtitle: Text(
- "Já vai sair?",
- style: TextStyle(fontSize: 10),
- ),
- onTap: () {
- clearSharedPreferences().then((e) {
- apiLogout().then((e) {
- Navigator.pop(context);
- Navigator.of(context).pushReplacementNamed("/");
- });
- });
- Navigator.pop(context),
- Navigator.pushReplacementNamed(context, '/'),
- }),
- ],
- ),
- );
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment