chore(ui,core,llc,persistance,localization): change AppBar props
This commit is contained in:
@@ -138,14 +138,17 @@ class ChannelHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final theme = Theme.of(context);
|
||||||
|
|
||||||
return InfoTile(
|
return InfoTile(
|
||||||
showMessage: showConnectionStateTile && showStatus,
|
showMessage: showConnectionStateTile && showStatus,
|
||||||
message: statusString,
|
message: statusString,
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
titleTextStyle: Theme.of(context).appBarTheme.titleTextStyle,
|
toolbarTextStyle: theme.textTheme.bodyText2,
|
||||||
systemOverlayStyle: Theme.of(context).brightness == Brightness.dark
|
titleTextStyle: theme.textTheme.headline6,
|
||||||
? SystemUiOverlayStyle.dark
|
systemOverlayStyle: theme.brightness == Brightness.dark
|
||||||
: SystemUiOverlayStyle.light,
|
? SystemUiOverlayStyle.light
|
||||||
|
: SystemUiOverlayStyle.dark,
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
leading: leadingWidget,
|
leading: leadingWidget,
|
||||||
backgroundColor: backgroundColor ?? channelHeaderTheme.color,
|
backgroundColor: backgroundColor ?? channelHeaderTheme.color,
|
||||||
|
|||||||
@@ -122,14 +122,16 @@ class ChannelListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
|
|
||||||
final chatThemeData = StreamChatTheme.of(context);
|
final chatThemeData = StreamChatTheme.of(context);
|
||||||
final channelListHeaderThemeData = ChannelListHeaderTheme.of(context);
|
final channelListHeaderThemeData = ChannelListHeaderTheme.of(context);
|
||||||
|
final theme = Theme.of(context);
|
||||||
return InfoTile(
|
return InfoTile(
|
||||||
showMessage: showConnectionStateTile && showStatus,
|
showMessage: showConnectionStateTile && showStatus,
|
||||||
message: statusString,
|
message: statusString,
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
titleTextStyle: Theme.of(context).appBarTheme.titleTextStyle,
|
toolbarTextStyle: theme.textTheme.bodyText2,
|
||||||
systemOverlayStyle: Theme.of(context).brightness == Brightness.dark
|
titleTextStyle: theme.textTheme.headline6,
|
||||||
? SystemUiOverlayStyle.dark
|
systemOverlayStyle: theme.brightness == Brightness.dark
|
||||||
: SystemUiOverlayStyle.light,
|
? SystemUiOverlayStyle.light
|
||||||
|
: SystemUiOverlayStyle.dark,
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
backgroundColor ?? channelListHeaderThemeData.color,
|
backgroundColor ?? channelListHeaderThemeData.color,
|
||||||
|
|||||||
@@ -58,11 +58,13 @@ class GalleryHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final galleryHeaderThemeData = GalleryHeaderTheme.of(context);
|
final galleryHeaderThemeData = GalleryHeaderTheme.of(context);
|
||||||
|
final theme = Theme.of(context);
|
||||||
return AppBar(
|
return AppBar(
|
||||||
titleTextStyle: Theme.of(context).appBarTheme.titleTextStyle,
|
toolbarTextStyle: theme.textTheme.bodyText2,
|
||||||
systemOverlayStyle: Theme.of(context).brightness == Brightness.dark
|
titleTextStyle: theme.textTheme.headline6,
|
||||||
? SystemUiOverlayStyle.dark
|
systemOverlayStyle: theme.brightness == Brightness.dark
|
||||||
: SystemUiOverlayStyle.light,
|
? SystemUiOverlayStyle.light
|
||||||
|
: SystemUiOverlayStyle.dark,
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
leading: showBackButton
|
leading: showBackButton
|
||||||
? IconButton(
|
? IconButton(
|
||||||
|
|||||||
@@ -128,12 +128,14 @@ class ThreadHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
final theme = Theme.of(context);
|
||||||
return AppBar(
|
return AppBar(
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
titleTextStyle: Theme.of(context).appBarTheme.titleTextStyle,
|
toolbarTextStyle: theme.textTheme.bodyText2,
|
||||||
systemOverlayStyle: Theme.of(context).brightness == Brightness.dark
|
titleTextStyle: theme.textTheme.headline6,
|
||||||
? SystemUiOverlayStyle.dark
|
systemOverlayStyle: theme.brightness == Brightness.dark
|
||||||
: SystemUiOverlayStyle.light,
|
? SystemUiOverlayStyle.light
|
||||||
|
: SystemUiOverlayStyle.dark,
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
leading: leading ??
|
leading: leading ??
|
||||||
(showBackButton
|
(showBackButton
|
||||||
|
|||||||
Reference in New Issue
Block a user