Skip to content

Commit

Permalink
Set surface tint color
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Jan 12, 2024
1 parent 77c0719 commit 655b600
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,11 @@ void main() {
required ThemeData theme,
}) async {
await tester.pumpWidgetBuilder(
Builder(
builder: (context) {
return Material(
color: Theme.of(context).scaffoldBackgroundColor,
child: const SingleChildScrollView(
child: SharezonePlusAdvantages(
isHomeworkDoneListsFeatureVisible: true,
isHomeworkReminderFeatureVisible: true,
),
),
);
},
const SingleChildScrollView(
child: SharezonePlusAdvantages(
isHomeworkDoneListsFeatureVisible: true,
isHomeworkReminderFeatureVisible: true,
),
),
wrapper: materialAppWrapper(theme: theme),
);
Expand Down Expand Up @@ -112,16 +105,7 @@ void main() {
testGoldens('renders faq section as expected (light theme)',
(tester) async {
await tester.pumpWidgetBuilder(
Builder(
builder: (context) {
return Material(
color: Theme.of(context).scaffoldBackgroundColor,
child: const SingleChildScrollView(
child: SharezonePlusFaq(),
),
);
},
),
const SingleChildScrollView(child: SharezonePlusFaq()),
wrapper: materialAppWrapper(theme: getLightTheme(fontFamily: roboto)),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ ThemeData getLightTheme({
brightness: Brightness.light,
error: _errorCode,
primary: primaryColor,
surfaceTint: Colors.white,
),
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ void main() {
ThemeData? theme,
}) async {
await tester.pumpWidgetBuilder(
Builder(
builder: (context) {
return Material(
color: Theme.of(context).scaffoldBackgroundColor,
child: const Center(
child: SharezonePlusChip(),
),
);
},
),
const Center(child: SharezonePlusChip()),
wrapper: materialAppWrapper(theme: theme),
);
}
Expand Down Expand Up @@ -58,19 +49,13 @@ void main() {
ThemeData? theme,
}) async {
await tester.pumpWidgetBuilder(
Builder(
builder: (context) {
return Material(
color: Theme.of(context).scaffoldBackgroundColor,
child: Center(
child: SharezonePlusFeatureInfoCard(
withLearnMoreButton: true,
child: const Text(
'Erwerbe Sharezone Plus, um nachzuvollziehen, wer den Infozettel bereits gelesen hat.'),
onLearnMorePressed: () {},
)),
);
},
Center(
child: SharezonePlusFeatureInfoCard(
withLearnMoreButton: true,
child: const Text(
'Erwerbe Sharezone Plus, um nachzuvollziehen, wer den Infozettel bereits gelesen hat.'),
onLearnMorePressed: () {},
),
),
wrapper: materialAppWrapper(theme: theme),
);
Expand Down

0 comments on commit 655b600

Please sign in to comment.