File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ You should then run `flutter packages get` in your terminal so as to get the pac
137
137
| Dart attribute | Datatype | Description | Default Value |
138
138
| :-------------------- | :------------- | :-------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- : |
139
139
| pageColor | Color? | Set color of the page. | Null |
140
- | pageBackground | Widget? | Set a widget as a background of the whole page (pageColor has priority) | Null |
140
+ | pageBackground | Widget | Set a widget as a background of the whole page (pageColor has priority) | Null |
141
141
| mainImage | Image? / Widget? | Set the main image of the page. | Null |
142
142
| title | Text? / Widget? | Set the title text of the page. If null, then the widget is omitted. | Null |
143
143
| body | Text? / Widget? | Set the body text of the page. If null, then the widget is omitted. | Null |
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
4
4
class PageViewModel {
5
5
const PageViewModel ({
6
6
this .pageColor,
7
- this .pageBackground,
7
+ this .pageBackground = const SizedBox () ,
8
8
this .iconImageAssetPath,
9
9
this .bubbleBackgroundColor = const Color (0x88FFFFFF ),
10
10
this .iconColor,
@@ -27,7 +27,7 @@ class PageViewModel {
27
27
/// or adding a background image.
28
28
///
29
29
/// [pageColor] has priority over [pageBackground] .
30
- final Widget ? pageBackground;
30
+ final Widget pageBackground;
31
31
32
32
/// Icon image path.
33
33
final String ? iconImageAssetPath;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Page extends StatelessWidget {
22
22
Widget build (BuildContext context) {
23
23
return Stack (
24
24
children: < Widget > [
25
- pageViewModel.pageBackground ?? const SizedBox () ,
25
+ pageViewModel.pageBackground,
26
26
Container (
27
27
padding: const EdgeInsets .all (8.0 ),
28
28
width: double .infinity,
You can’t perform that action at this time.
0 commit comments