conditionally show room avatar in header

This commit is contained in:
Henry Hiles 2025-11-14 17:27:43 -05:00
commit f0a397f576
No known key found for this signature in database
7 changed files with 110 additions and 95 deletions

View file

@ -1,3 +1,4 @@
import "package:flutter/material.dart";
import "package:flutter/widgets.dart";
import "package:flutter_chat_core/flutter_chat_core.dart";
import "package:flutter_riverpod/flutter_riverpod.dart";
@ -118,3 +119,9 @@ extension ToMessage on Event {
};
}
}
extension ToTheme on ColorScheme {
ThemeData get theme => ThemeData.from(
colorScheme: this,
).copyWith(appBarTheme: AppBarTheme(titleSpacing: 0));
}