design: Improve login design
This commit is contained in:
parent
796018cae2
commit
98d2ac021b
7 changed files with 272 additions and 237 deletions
|
|
@ -180,12 +180,13 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
}
|
||||
|
||||
Future<void> restoreBackup() async {
|
||||
final file =
|
||||
await FilePickerCross.importFromStorage(fileExtension: '.fluffybackup');
|
||||
if (file.fileName == null) return;
|
||||
await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () async {
|
||||
try {
|
||||
final file = await FilePickerCross.importFromStorage(
|
||||
fileExtension: '.fluffybackup');
|
||||
final client = Matrix.of(context).getLoginClient();
|
||||
await client.importDump(file.toString());
|
||||
Matrix.of(context).initMatrix();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue