Stream Chatty added as example (#21)

* app updated

* readme updated

* rename base folder

* update chatty's readme

Co-authored-by: Neevash Ramdial <[email protected]>
This commit is contained in:
Diego Velásquez López
2021-03-10 14:53:20 -04:00
committed by GitHub
co-authored by Neevash Ramdial
parent c86652dcfc
commit bd6bb66279
111 changed files with 3806 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
Future pushToPage(BuildContext context, Widget widget) async {
await Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => widget,
),
);
}
Future pushAndReplaceToPage(BuildContext context, Widget widget) async {
await Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (_) => widget,
),
);
}
Future popAllAndPush(BuildContext context, Widget widget) async {
await Navigator.pushAndRemoveUntil(
context, MaterialPageRoute(builder: (BuildContext context) => widget), ModalRoute.withName('/'));
}