Skip to content

Commit

Permalink
📝 feat: update example to show usage of new addition
Browse files Browse the repository at this point in the history
  • Loading branch information
danagbemava committed Oct 7, 2020
1 parent 1695296 commit 4be77c6
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions example/lib/notification/simple_notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _SimpleNotificationState extends State<SimpleNotification> {
onLongPress: () {
BotToast.showText(text: 'Long press toast');
},
backgroundColor: Colors.red,
titleStyle: const TextStyle(color: Colors.white),
subTitleStyle: const TextStyle(color: Colors.white),
onlyOne: onlyOne,
crossPage: crossPage,
animationDuration: Duration(milliseconds: animationMilliseconds),
Expand Down Expand Up @@ -76,7 +79,6 @@ class _SimpleNotificationState extends State<SimpleNotification> {
},
child: Text("simpleNotification"),
),

SwitchListTile(
value: enableSlideOff,
onChanged: (value) {
Expand Down Expand Up @@ -113,38 +115,46 @@ class _SimpleNotificationState extends State<SimpleNotification> {
},
title: Text("crossPage: "),
),
Center(child: Text('BackButtonBehavior'),),
Center(
child: Text('BackButtonBehavior'),
),
Row(
children: <Widget>[
Expanded(
child: RadioListTile(value: BackButtonBehavior.none,
child: RadioListTile(
value: BackButtonBehavior.none,
groupValue: backButtonBehavior,
onChanged: (value) {
setState(() {
backButtonBehavior = value;
});
},
title: Text('none'),),
title: Text('none'),
),
),
Expanded(
child: RadioListTile(value: BackButtonBehavior.ignore,
child: RadioListTile(
value: BackButtonBehavior.ignore,
groupValue: backButtonBehavior,
onChanged: (value) {
setState(() {
backButtonBehavior = value;
});
},
title: Text('ignore'),),
title: Text('ignore'),
),
),
Expanded(
child: RadioListTile(value: BackButtonBehavior.close,
child: RadioListTile(
value: BackButtonBehavior.close,
groupValue: backButtonBehavior,
onChanged: (value) {
setState(() {
backButtonBehavior = value;
});
},
title: Text('close'),),
title: Text('close'),
),
)
],
),
Expand Down Expand Up @@ -191,12 +201,10 @@ class _SimpleNotificationState extends State<SimpleNotification> {
},
),
),

],
),
),
),
);
}
}

0 comments on commit 4be77c6

Please sign in to comment.