Merge pull request #5407 from pangeachat/5387-darken-screen-further-on-activity-end-popup

chore: Darken Screen further on Activity End Popup
This commit is contained in:
ggurdin 2026-01-23 13:30:05 -05:00 committed by GitHub
commit 9ae0aa401b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 12 deletions

View file

@ -7,7 +7,6 @@ import 'package:shimmer/shimmer.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pages/chat/chat.dart';
import 'package:fluffychat/pangea/activity_sessions/activity_session_chat/activity_chat_extension.dart';
import 'package:fluffychat/pangea/common/utils/overlay.dart';
import 'package:fluffychat/pangea/common/widgets/tutorial_overlay_message.dart';
import 'package:fluffychat/pangea/events/constants/pangea_event_types.dart';
@ -62,9 +61,9 @@ class _ActivityMenuButtonState extends State<ActivityMenuButton> {
/// to the stats menu button with an explanation of what it does.
void _showStatsMenuDropdownInstructions(_) {
if (!mounted) return;
if (!widget.controller.shouldShowActivityInstructions) {
return;
}
// if (!widget.controller.shouldShowActivityInstructions) {
// return;
// }
final renderObject = context.findRenderObject() as RenderBox;
final offset = renderObject.localToGlobal(Offset.zero);

View file

@ -79,7 +79,7 @@ class _AnchoredOverlayWidgetState extends State<AnchoredOverlayWidget> {
child: CustomPaint(
painter: CutoutBackgroundPainter(
holeRect: widget.anchorRect,
backgroundColor: Colors.black54,
backgroundColor: Colors.black.withAlpha(180),
borderRadius: widget.borderRadius ?? 0.0,
padding: widget.padding ?? 6.0,
),

View file

@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:fluffychat/config/app_config.dart';
class TutorialOverlayMessage extends StatelessWidget {
final String message;
@ -14,23 +16,27 @@ class TutorialOverlayMessage extends StatelessWidget {
child: Container(
padding: const EdgeInsets.all(16.0),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.onSurface,
// color: Theme.of(context).colorScheme.onSurface,
color: Color.alphaBlend(
Theme.of(context).colorScheme.surface.withAlpha(70),
AppConfig.gold,
),
borderRadius: BorderRadius.circular(12.0),
),
width: 200,
width: 350,
alignment: Alignment.center,
child: RichText(
text: TextSpan(
style: TextStyle(
color: Theme.of(context).colorScheme.surface,
),
style: Theme.of(context).textTheme.titleMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
children: [
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Icon(
Icons.info_outlined,
size: 16.0,
color: Theme.of(context).colorScheme.surface,
size: 20.0,
color: Theme.of(context).colorScheme.onSurface,
),
),
const WidgetSpan(child: SizedBox(width: 4.0)),