mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 17:11:23 +00:00

* feat: support duplicating and deleting a space on mobile * feat: support editing a space on mobile * feat: support renaming space * feat: add more space icons * fix: unable to rename space * fix: code review * chore: remove ingore import flag for testing * test: add create space test * chore: enable cloud test * test: fix space test * test: add rename/duplicate/delete tests
13 lines
252 B
Dart
13 lines
252 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
extension NavigatorContext on BuildContext {
|
|
void popToHome() {
|
|
Navigator.of(this).popUntil((route) {
|
|
if (route.settings.name == '/') {
|
|
return true;
|
|
}
|
|
return false;
|
|
});
|
|
}
|
|
}
|