forked from simplezhli/flutter_deer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e89179c
commit 2a7ac27
Showing
3 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_deer/login/login_router.dart'; | ||
import 'package:flutter_deer/res/styles.dart'; | ||
import 'package:flutter_deer/routers/fluro_navigator.dart'; | ||
import 'package:flutter_deer/widgets/base_dialog.dart'; | ||
|
||
class ExitDialog extends StatefulWidget{ | ||
|
||
ExitDialog({ | ||
Key key, | ||
}) : super(key : key); | ||
|
||
@override | ||
_ExitDialog createState() => _ExitDialog(); | ||
|
||
} | ||
|
||
class _ExitDialog extends State<ExitDialog>{ | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BaseDialog( | ||
title: "提示", | ||
height: 160.0, | ||
child: Padding( | ||
padding: const EdgeInsets.only(left: 16.0, top: 8.0, right: 16.0), | ||
child: Text("您确定要退出登录吗?", style: TextStyles.textDark16), | ||
), | ||
onPressed: (){ | ||
NavigatorUtils.push(context, LoginRouter.loginPage, clearStack: true); | ||
}, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters