1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-22 17:55:17 +00:00

Fix a few notices

This commit is contained in:
2022-03-11 17:09:37 +01:00
parent 0f9a59b4a7
commit 41446f0e5b
22 changed files with 36 additions and 139 deletions

View File

@ -50,8 +50,9 @@ abstract class MainController extends State<MainRoute> {
int get numberOfPages => _pagesStack.length;
/// Get current instance of Home controller
///
/// A future implementation might need context again, that is why it is required
static MainController? of(BuildContext context) {
assert(context != null); // A future implementation might need context again
return mainControllerKey.currentState;
}