fix modal divider

This commit is contained in:
Salvatore Giordano
2021-01-18 09:41:08 +01:00
parent d4b0ab87e1
commit 109505adca
2 changed files with 8 additions and 3 deletions
@@ -491,7 +491,11 @@ class ColorTheme {
stops: [0, 1], stops: [0, 1],
), ),
this.borderTop = const Effect( this.borderTop = const Effect(
sigmaX: 0, sigmaY: -1, color: Color(0xff000000), blur: 0.0), sigmaX: 0,
sigmaY: -1,
color: Color(0xff000000),
blur: 0.0,
alpha: 0.08),
this.borderBottom = const Effect( this.borderBottom = const Effect(
sigmaX: 0, sigmaY: 1, color: Color(0xff000000), blur: 0.0, alpha: 0.08), sigmaX: 0, sigmaY: 1, color: Color(0xff000000), blur: 0.0, alpha: 0.08),
this.shadowIconButton = const Effect( this.shadowIconButton = const Effect(
+3 -2
View File
@@ -35,6 +35,7 @@ Future<bool> showConfirmationDialog(
topRight: Radius.circular(16.0), topRight: Radius.circular(16.0),
)), )),
builder: (context) { builder: (context) {
final effect = StreamChatTheme.of(context).colorTheme.borderTop;
return Column( return Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -52,8 +53,8 @@ Future<bool> showConfirmationDialog(
), ),
SizedBox(height: 36.0), SizedBox(height: 36.0),
Container( Container(
color: StreamChatTheme.of(context).colorTheme.greyGainsboro, color: effect.color.withOpacity(effect.alpha ?? 1),
height: 1.0, height: 1,
), ),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,