migrate ui

This commit is contained in:
Salvatore Giordano
2021-04-30 14:58:50 +02:00
parent 2c02f0f631
commit 34888d0fff
103 changed files with 2622 additions and 2455 deletions
@@ -6,17 +6,17 @@ import '../stream_chat_flutter.dart';
class StreamBackButton extends StatelessWidget {
const StreamBackButton({
Key key,
Key? key,
this.onPressed,
this.showUnreads = false,
this.cid,
}) : super(key: key);
final VoidCallback onPressed;
final VoidCallback? onPressed;
final bool showUnreads;
/// Channel cid used to retrieve unread count
final String cid;
final String? cid;
@override
Widget build(BuildContext context) {
@@ -34,7 +34,7 @@ class StreamBackButton extends StatelessWidget {
hoverElevation: 0,
onPressed: () {
if (onPressed != null) {
onPressed();
onPressed!();
} else {
Navigator.maybePop(context);
}