conditionally show room avatar in header
This commit is contained in:
parent
d272c20e19
commit
f0a397f576
7 changed files with 110 additions and 95 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
import "package:nexus/helpers/extension_helper.dart";
|
||||
import "package:nexus/widgets/room_chat.dart";
|
||||
import "package:nexus/widgets/sidebar.dart";
|
||||
import "package:scaled_app/scaled_app.dart";
|
||||
|
|
@ -31,18 +32,16 @@ class App extends StatelessWidget {
|
|||
|
||||
return MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData.from(
|
||||
colorScheme:
|
||||
lightDynamic ?? ColorScheme.fromSeed(seedColor: Colors.indigo),
|
||||
),
|
||||
darkTheme: ThemeData.from(
|
||||
colorScheme:
|
||||
darkDynamic ??
|
||||
ColorScheme.fromSeed(
|
||||
seedColor: Colors.indigo,
|
||||
brightness: Brightness.dark,
|
||||
),
|
||||
),
|
||||
theme:
|
||||
(lightDynamic ?? ColorScheme.fromSeed(seedColor: Colors.indigo))
|
||||
.theme,
|
||||
darkTheme:
|
||||
(darkDynamic ??
|
||||
ColorScheme.fromSeed(
|
||||
seedColor: Colors.indigo,
|
||||
brightness: Brightness.dark,
|
||||
))
|
||||
.theme,
|
||||
home: Scaffold(
|
||||
body: Builder(
|
||||
builder: (context) => Row(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue