Fix login button

This commit is contained in:
estevez-dev
2019-04-05 14:07:03 +03:00
parent 93af1eca7e
commit 8c1ad9c7f9
4 changed files with 10 additions and 9 deletions

View File

@ -284,7 +284,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
if (_startAuthSubscription == null) {
_startAuthSubscription = eventBus.on<StartAuthEvent>().listen((event){
setState(() {
_showLoginButton = true;
_showLoginButton = event.showButton;
});
});
}
@ -651,11 +651,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
value: "reload",
));
List<Widget> emptyBody = [
Icon(
MaterialDesignIcons.getIconDataFromIconName("mdi:border-none-variant"),
size: 100.0,
color: Colors.black26,
),
Text("."),
];
if (Connection().isAuthenticated) {
_showLoginButton = false;