Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ migrate_working_dir/
.dart_tool/
.packages
build/
/.flutter-plugins-dependencies
/example/.flutter-plugins-dependencies
16 changes: 12 additions & 4 deletions lib/src/utils/mistake_popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class LanguageToolMistakePopup extends StatelessWidget {

final availableSpace = _calculateAvailableSpace(context);

final colorScheme = Theme.of(context).colorScheme;

return PointerInterceptor(
child: ConstrainedBox(
constraints: BoxConstraints(
Expand All @@ -125,9 +127,14 @@ class LanguageToolMistakePopup extends StatelessWidget {
vertical: verticalMargin,
),
decoration: BoxDecoration(
color: const Color.fromRGBO(241, 243, 248, 1.0),
color: colorScheme.surface.withValues(alpha: 0.9),
borderRadius: BorderRadius.circular(_borderRadius),
boxShadow: const [BoxShadow(color: Colors.grey, blurRadius: 8)],
boxShadow: [
BoxShadow(
color: colorScheme.onSurface.withValues(alpha: 0.5),
blurRadius: 8,
),
],
),
padding: const EdgeInsets.only(
top: 8,
Expand Down Expand Up @@ -180,7 +187,7 @@ class LanguageToolMistakePopup extends StatelessWidget {
margin: const EdgeInsets.only(top: 8),
padding: const EdgeInsets.all(padding),
decoration: BoxDecoration(
color: Colors.white,
color: colorScheme.surface,
borderRadius: BorderRadius.circular(_borderRadius),
),
child: SingleChildScrollView(
Expand All @@ -194,7 +201,8 @@ class LanguageToolMistakePopup extends StatelessWidget {
child: Text(
mistake.type.name.capitalize(),
style: TextStyle(
color: Colors.grey.shade700,
color:
colorScheme.onSurface.withValues(alpha: 0.7),
fontSize: _mistakeNameFontSize,
fontWeight: FontWeight.w600,
letterSpacing: _titleLetterSpacing,
Expand Down