chore(ui): update example
This commit is contained in:
@@ -56,10 +56,14 @@ class MyApp extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final themeData = ThemeData(primarySwatch: Colors.green);
|
final themeData = ThemeData(
|
||||||
|
colorScheme: ColorScheme.fromSwatch(
|
||||||
|
accentColor: Colors.green,
|
||||||
|
),
|
||||||
|
);
|
||||||
final defaultTheme = StreamChatThemeData.fromTheme(themeData);
|
final defaultTheme = StreamChatThemeData.fromTheme(themeData);
|
||||||
final colorTheme = defaultTheme.colorTheme;
|
final colorTheme = defaultTheme.colorTheme;
|
||||||
final customTheme = defaultTheme.merge(StreamChatThemeData(
|
final customTheme = StreamChatThemeData(
|
||||||
channelPreviewTheme: StreamChannelPreviewThemeData(
|
channelPreviewTheme: StreamChannelPreviewThemeData(
|
||||||
avatarTheme: StreamAvatarThemeData(
|
avatarTheme: StreamAvatarThemeData(
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
@@ -81,7 +85,7 @@ class MyApp extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
));
|
).merge(defaultTheme);
|
||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
theme: themeData,
|
theme: themeData,
|
||||||
|
|||||||
Reference in New Issue
Block a user