This commit is contained in:
Salvatore Giordano
2020-12-31 09:57:21 +01:00
parent db932d4e32
commit a8171f7314
5 changed files with 11 additions and 8 deletions
@@ -61,6 +61,7 @@ class _GroupChatDetailsScreenState extends State<GroupChatDetailsScreen> {
child: Scaffold( child: Scaffold(
backgroundColor: StreamChatTheme.of(context).colorTheme.whiteSnow, backgroundColor: StreamChatTheme.of(context).colorTheme.whiteSnow,
appBar: AppBar( appBar: AppBar(
brightness: Theme.of(context).brightness,
elevation: 1, elevation: 1,
backgroundColor: StreamChatTheme.of(context).colorTheme.white, backgroundColor: StreamChatTheme.of(context).colorTheme.white,
leading: const StreamBackButton(), leading: const StreamBackButton(),
+1
View File
@@ -121,6 +121,7 @@ class _NewChatScreenState extends State<NewChatScreen> {
return Scaffold( return Scaffold(
backgroundColor: StreamChatTheme.of(context).colorTheme.whiteSnow, backgroundColor: StreamChatTheme.of(context).colorTheme.whiteSnow,
appBar: AppBar( appBar: AppBar(
brightness: Theme.of(context).brightness,
elevation: 0, elevation: 0,
backgroundColor: StreamChatTheme.of(context).colorTheme.white, backgroundColor: StreamChatTheme.of(context).colorTheme.white,
leading: const StreamBackButton(), leading: const StreamBackButton(),
+5 -4
View File
@@ -50,14 +50,15 @@ class _NewGroupChatScreenState extends State<NewGroupChatScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return SafeArea( return Scaffold(
child: Scaffold( backgroundColor: StreamChatTheme.of(context).colorTheme.whiteSnow,
backgroundColor: StreamChatTheme.of(context).colorTheme.whiteSnow, body: SafeArea(
body: NestedScrollView( child: NestedScrollView(
floatHeaderSlivers: true, floatHeaderSlivers: true,
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[ return <Widget>[
SliverAppBar( SliverAppBar(
brightness: Theme.of(context).brightness,
pinned: true, pinned: true,
forceElevated: true, forceElevated: true,
elevation: 1, elevation: 1,
+1 -1
View File
@@ -1,6 +1,6 @@
name: example name: example
description: A new Flutter project. description: A new Flutter project.
version: 1.0.100+103 version: 1.0.101+104
environment: environment:
sdk: ">=2.2.2 <3.0.0" sdk: ">=2.2.2 <3.0.0"
+3 -3
View File
@@ -25,12 +25,12 @@ class AttachmentError extends StatelessWidget {
return Center( return Center(
child: Container( child: Container(
width: size?.width, width: size?.width,
height: size?.height, height: size?.height ?? 200,
color: Color(0xffd0021B).withOpacity(.1), color: StreamChatTheme.of(context).colorTheme.accentRed.withOpacity(.1),
child: Center( child: Center(
child: Icon( child: Icon(
Icons.error_outline, Icons.error_outline,
color: StreamChatTheme.of(context).colorTheme.white, color: StreamChatTheme.of(context).colorTheme.black,
), ),
), ),
), ),