chore: better match tooltip style

This commit is contained in:
ggurdin 2026-01-26 16:52:43 -05:00
parent b6fc70069d
commit 8dcffbdabb
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 19 additions and 23 deletions

View file

@ -29,7 +29,7 @@ class AnchoredOverlayWidget extends StatefulWidget {
class _AnchoredOverlayWidgetState extends State<AnchoredOverlayWidget> {
bool _visible = false;
static const double overlayWidth = 200.0;
static const double overlayWidth = 300.0;
@override
void initState() {

View file

@ -14,7 +14,7 @@ class TutorialOverlayMessage extends StatelessWidget {
Widget build(BuildContext context) {
return Center(
child: Container(
padding: const EdgeInsets.all(16.0),
padding: const EdgeInsets.all(8.0),
decoration: BoxDecoration(
// color: Theme.of(context).colorScheme.onSurface,
color: Color.alphaBlend(
@ -23,29 +23,25 @@ class TutorialOverlayMessage extends StatelessWidget {
),
borderRadius: BorderRadius.circular(12.0),
),
width: 350,
alignment: Alignment.center,
child: RichText(
text: TextSpan(
style: Theme.of(context).textTheme.titleMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
children: [
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Icon(
Icons.info_outlined,
size: 20.0,
color: Theme.of(context).colorScheme.onSurface,
),
child: Row(
spacing: 4.0,
children: [
Icon(
Icons.lightbulb,
size: 20.0,
color: Theme.of(context).colorScheme.onSurface,
),
Flexible(
child: Text(
message,
style: Theme.of(context).textTheme.titleMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
textAlign: TextAlign.center,
),
const WidgetSpan(child: SizedBox(width: 4.0)),
TextSpan(
text: message,
),
],
),
textAlign: TextAlign.center,
),
],
),
),
);