mirror of
https://github.com/Iconica-Development/flutter_date_time_picker.git
synced 2025-05-19 02:43:50 +02:00
rollback changes with updated master branch
This commit is contained in:
parent
60a3605b48
commit
e3b651aab6
1 changed files with 28 additions and 1 deletions
|
@ -68,6 +68,33 @@ class DatePickerDemo extends StatelessWidget {
|
||||||
barOpacity: 1,
|
barOpacity: 1,
|
||||||
),
|
),
|
||||||
paginationSize: 50,
|
paginationSize: 50,
|
||||||
|
);
|
||||||
|
|
||||||
|
const popupDateTimePickerTheme = DateTimePickerTheme(
|
||||||
|
dateBoxShape: DateBoxShape.roundedRectangle,
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
markedIndicatorColor: Colors.red,
|
||||||
|
baseTheme: DateBoxBaseTheme(
|
||||||
|
Colors.white,
|
||||||
|
TextStyle(color: Colors.black),
|
||||||
|
),
|
||||||
|
selectedTheme: DateBoxSelectedTheme(
|
||||||
|
Color(0x4BF44336),
|
||||||
|
TextStyle(
|
||||||
|
color: Colors.red,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
highlightTheme: DateBoxHighlightTheme(
|
||||||
|
Colors.red,
|
||||||
|
TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
barTheme: DateTimePickerBarTheme(
|
||||||
|
barColor: Colors.black,
|
||||||
|
barOpacity: 1,
|
||||||
|
),
|
||||||
|
paginationSize: 50,
|
||||||
shapeBorder: ArrowedBorder(),
|
shapeBorder: ArrowedBorder(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -101,7 +128,7 @@ class DatePickerDemo extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
OverlayDateTimePicker(
|
OverlayDateTimePicker(
|
||||||
theme: dateTimePickerTheme,
|
theme: popupDateTimePickerTheme,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
buttonBuilder: (key, onPressed) => IconButton(
|
buttonBuilder: (key, onPressed) => IconButton(
|
||||||
key: key,
|
key: key,
|
||||||
|
|
Loading…
Reference in a new issue