Skip to content

Commit

Permalink
Added Labels to dialog with Range in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
digit81 committed Apr 30, 2020
1 parent 1b5ed86 commit cb3abf3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ class _MyHomePageState extends State<MyHomePage> {
builder: (_) => SomeCalendar(
primaryColor: Color(0xff5833A5),
mode: SomeMode.Single,
labels: new Labels(
dialogDone: 'Wybierz',
dialogCancel: 'Anuluj',
),
isWithoutDialog: false,
selectedDate: selectedDate,
startDate: Jiffy().subtract(years: 3),
Expand Down Expand Up @@ -128,6 +132,12 @@ class _MyHomePageState extends State<MyHomePage> {
context: context,
builder: (_) => SomeCalendar(
mode: SomeMode.Range,
labels: new Labels(
dialogRangeFirstDate: 'Od:',
dialogRangeLastDate: 'Do:',
dialogDone: 'Wybierz',
dialogCancel: 'Anuluj',
),
primaryColor: Color(0xff5833A5),
startDate: Jiffy().subtract(years: 3),
lastDate: Jiffy().add(months: 9),
Expand Down

0 comments on commit cb3abf3

Please sign in to comment.