add blue effect to overlat background, made toolbar backdrop slightly darker

This commit is contained in:
ggurdin 2024-09-12 15:30:54 -04:00
parent 2262bf6e04
commit 3a7d46fc18
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 9 additions and 5 deletions

View file

@ -1660,7 +1660,7 @@ class ChatController extends State<ChatPageWithRoom>
context: context,
child: overlayEntry,
transformTargetId: "",
backgroundColor: const Color.fromRGBO(0, 0, 0, 1).withAlpha(100),
backgroundColor: const Color.fromRGBO(0, 0, 0, 1).withAlpha(150),
closePrevOverlay:
MatrixState.pangeaController.subscriptionController.isSubscribed,
position: OverlayPositionEnum.centered,

View file

@ -1,5 +1,6 @@
import 'dart:developer';
import 'dart:math';
import 'dart:ui';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/utils/any_state_holder.dart';
@ -229,10 +230,13 @@ class TransparentBackdrop extends StatelessWidget {
}
MatrixState.pAnyState.closeOverlay();
},
child: Container(
height: double.infinity,
width: double.infinity,
color: Colors.transparent,
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 2.5, sigmaY: 2.5),
child: Container(
height: double.infinity,
width: double.infinity,
color: Colors.transparent,
),
),
),
);