Skip to content

Commit

Permalink
Fixes colors
Browse files Browse the repository at this point in the history
  • Loading branch information
JMApps committed May 5, 2024
1 parent 7512cd9 commit 1aefa23
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:io';
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/presentation/items/question_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ class QuestionItem extends StatelessWidget {
readMainState.toggleFavorite(model.id);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
backgroundColor: appColors.primary,
backgroundColor: appColors.secondaryContainer,
duration: const Duration(milliseconds: 350),
content: Text(
isBookmark ? AppStrings.removed : AppStrings.added,
style: const TextStyle(
style: TextStyle(
fontSize: 18,
color: Colors.white,
color: appColors.inverseSurface,
),
),
),
Expand Down
6 changes: 3 additions & 3 deletions lib/presentation/items/question_item_tablet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ class QuestionItemTablet extends StatelessWidget {
readMainState.toggleFavorite(model.id);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
backgroundColor: appColors.primary,
backgroundColor: appColors.secondary,
duration: const Duration(milliseconds: 350),
content: Text(
isBookmark ? AppStrings.removed : AppStrings.added,
style: const TextStyle(
style: TextStyle(
fontSize: 20,
color: Colors.white,
color: appColors.inverseSurface,
),
),
),
Expand Down
5 changes: 2 additions & 3 deletions lib/presentation/pages/question_chapters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ class QuestionChapters extends StatelessWidget {
),
body: FutureBuilder<List<QuestionModel>>(
future: mainAppState.getDatabaseQuery.getAllQuestions(),
builder: (BuildContext context,
AsyncSnapshot<List<QuestionModel>> snapshot) {
builder: (context, snapshot) {
if (snapshot.hasData) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
Expand Down Expand Up @@ -89,7 +88,7 @@ class QuestionChapters extends StatelessWidget {
borderRadius: AppStyles.mainBorderRadius,
side: BorderSide(
width: 1,
color: appColors.primary,
color: appColors.secondary,
),
),
child: ScreenTypeLayout.builder(
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class _SettingsPageState extends State<SettingsPage> {
min: 14,
max: 100,
divisions: 100,
activeColor: appTheme.colorScheme.secondary,
label: settingsState.getTextSize.round().toString(),
onChanged: (double? size) {
settingsState.changeTextSize = size!;
Expand Down

0 comments on commit 1aefa23

Please sign in to comment.