1. mobile ab login.

2. typos
3. del rename dialog body padding
This commit is contained in:
csf
2022-09-22 17:38:18 +08:00
parent 00077676f4
commit 51b02353c9
27 changed files with 64 additions and 53 deletions

View File

@@ -7,6 +7,7 @@ import 'package:provider/provider.dart';
import '../../common.dart';
import '../../desktop/pages/desktop_home_page.dart';
import '../../mobile/pages/settings_page.dart';
import '../../models/platform_model.dart';
class AddressBook extends StatefulWidget {
@@ -37,11 +38,16 @@ class _AddressBookState extends State<AddressBook> {
});
handleLogin() {
loginDialog().then((success) {
if (success) {
setState(() {});
}
});
// TODO refactor login dialog for desktop and mobile
if (isDesktop) {
loginDialog().then((success) {
if (success) {
setState(() {});
}
});
} else {
showLogin(gFFI.dialogManager);
}
}
Future<Widget> buildAddressBook(BuildContext context) async {