From 0d3905620b5334ecb237a74de49f47d17de32494 Mon Sep 17 00:00:00 2001 From: Kfir Matityahu Date: Wed, 11 Mar 2020 10:56:58 +0200 Subject: [PATCH] Fixed an issue with month name in long format not showing in one line on small resolution --- CHANGELOG.md | 3 +++ example/lib/main.dart | 4 ++-- example/pubspec.lock | 2 +- lib/date_picker.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d37124..639fe61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.1.2+6] +* Fixed an issue with month name in long format not showing in one line on small resolution + ## [0.1.2+5] * Added Indonesian Language support diff --git a/example/lib/main.dart b/example/lib/main.dart index a626f19..35d81ba 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -70,7 +70,7 @@ class _WidgetPageState extends State { child: Scaffold( body: Center( child: Container( - padding: const EdgeInsets.symmetric(horizontal: 28), + padding: const EdgeInsets.symmetric(horizontal: 25), child: DatePickerWidget( firstDate: DateTime(1960), lastDate: DateTime(2002, 1, 1), @@ -78,7 +78,7 @@ class _WidgetPageState extends State { dateFormat: "dd-MMMM-yyyy", onChange: (DateTime newDate, _) => _selectedDate = newDate, pickerTheme: DateTimePickerTheme( - itemTextStyle: TextStyle(color: Colors.black, fontSize: 20)), + itemTextStyle: TextStyle(color: Colors.black, fontSize: 19)), ), ), ), diff --git a/example/pubspec.lock b/example/pubspec.lock index 6e4cc42..13d0d1c 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -75,7 +75,7 @@ packages: path: ".." relative: true source: path - version: "0.1.2+5" + version: "0.1.2+6" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/date_picker.dart b/lib/date_picker.dart index 8496fb4..6612f4c 100644 --- a/lib/date_picker.dart +++ b/lib/date_picker.dart @@ -71,7 +71,7 @@ class DatePicker { titleText ?? "Select Date", style: TextStyle(color: textColor), ), - contentPadding: EdgeInsets.symmetric(vertical: 0, horizontal: 24), + contentPadding: EdgeInsets.symmetric(vertical: 0, horizontal: 14), backgroundColor: backgroundColor, content: Container( width: 300, diff --git a/pubspec.yaml b/pubspec.yaml index 33fbad4..63757b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_holo_date_picker description: A Flutter package of Datepicker that looks like Holo Theme in Android. -version: 0.1.2+5 +version: 0.1.2+6 homepage: https://github.com/kfiross/flutter_holo_date_picker environment: