Skip to content

Commit 0f762a7

Browse files
authored
Add background configuration option
1 parent 60a8c1c commit 0f762a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/intro_views_flutter.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ class IntroViewsFlutter extends StatefulWidget {
9191
///
9292
/// default to 300.0
9393
final double fullTransition;
94+
95+
final Color background;
9496

9597
IntroViewsFlutter(
9698
this.pages, {
@@ -113,6 +115,7 @@ class IntroViewsFlutter extends StatefulWidget {
113115
this.doneButtonPersist = false,
114116
this.columnMainAxisAlignment = MainAxisAlignment.spaceAround,
115117
this.fullTransition = FULL_TARNSITION_PX,
118+
this.background = null,
116119
}) : super(key: key);
117120

118121
@override
@@ -231,6 +234,7 @@ class _IntroViewsFlutterState extends State<IntroViewsFlutter>
231234
return Scaffold(
232235
//Stack is used to place components over one another.
233236
resizeToAvoidBottomPadding: false,
237+
color: this.background,
234238
body: Stack(
235239
children: <Widget>[
236240
Page(

0 commit comments

Comments
 (0)