Logo
Explore Help
Register Sign In
yujunjun/AppFlowy
1
0
Fork 0
You've already forked AppFlowy
mirror of https://github.com/AppFlowy-IO/AppFlowy.git synced 2025-07-25 01:50:56 +00:00
Code Issues Packages Projects Releases Wiki Activity
AppFlowy/frontend/appflowy_flutter/lib/util/navigator_context_extension.dart

13 lines
252 B
Dart
Raw Normal View History

feat: support workspace ops on mobile (#6449) * feat: support workspace ops on mobile * chore: move the member bloc to workspace menu item widget * feat: support creating workspace on mobile * chore: add popToHome extension * fix: flutter analyze * feat: support renaming a workspace * feat: support deleting a workspace * feat: support leaving a workspace * feat: workspace icon ui revamp * feat: support updating workspace icon on mobile * feat: show a confirm dialog before deleting a workspace * fix: workspace name overflow * feat: support leaving a workspace * chore: update translations * feat: show a toast after renaming workspace * feat: update translations * feat: add workspace operation integration tests on mobile * test: add create workspace test on mobile
2024-10-02 20:13:19 +08:00
import 'package:flutter/material.dart';
extension NavigatorContext on BuildContext {
void popToHome() {
Navigator.of(this).popUntil((route) {
if (route.settings.name == '/') {
return true;
}
return false;
});
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 322ms Template: 18ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API