Skip to content

Commit 58e6e00

Browse files
Fix webview background
1 parent d433f98 commit 58e6e00

1 file changed

Lines changed: 22 additions & 19 deletions

File tree

lib/ui/views/reader/reader_view.dart

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,31 @@ class ReaderView extends StackedView<ReaderViewModel> {
5454
body: SafeArea(
5555
child: Stack(
5656
children: [
57-
Column(
58-
mainAxisSize: MainAxisSize.min,
59-
crossAxisAlignment: CrossAxisAlignment.stretch,
60-
children: [
61-
Expanded(
62-
child: WebViewWidget(
63-
controller: viewModel.webviewController,
57+
Container(
58+
color: context.theme.appColors.background,
59+
child: Column(
60+
mainAxisSize: MainAxisSize.min,
61+
crossAxisAlignment: CrossAxisAlignment.stretch,
62+
children: [
63+
Expanded(
64+
child: WebViewWidget(
65+
controller: viewModel.webviewController,
66+
),
6467
),
65-
),
66-
if (viewModel.primaryAreaBible != 'KJV' || viewModel.secondaryAreaBible != 'KJV')
67-
Container(
68-
color: context.theme.appColors.background,
69-
padding: const EdgeInsets.symmetric(vertical: 4.0, horizontal: 12.0),
70-
child: Text(
71-
'This is still a very early look into the unfinished text of the Open English Translation of the Bible. Please double-check the text in advance before using in public.',
72-
style: TextStyle(
73-
fontSize: 8.0,
74-
color: context.theme.appColors.readerText,
68+
if (viewModel.primaryAreaBible != 'KJV' || viewModel.secondaryAreaBible != 'KJV')
69+
Container(
70+
color: context.theme.appColors.background,
71+
padding: const EdgeInsets.symmetric(vertical: 4.0, horizontal: 12.0),
72+
child: Text(
73+
'This is still a very early look into the unfinished text of the Open English Translation of the Bible. Please double-check the text in advance before using in public.',
74+
style: TextStyle(
75+
fontSize: 8.0,
76+
color: context.theme.appColors.readerText,
77+
),
7578
),
7679
),
77-
),
78-
],
80+
],
81+
),
7982
),
8083
if (viewModel.isSecondaryReaderAreaPopupActive)
8184
Align(

0 commit comments

Comments
 (0)