macacoazul01 / month_picker_dialog Goto Github PK
View Code? Open in Web Editor NEWInternationalized dialog for picking a single month from an infinite list of years.
Home Page: https://pub.dev/packages/month_picker_dialog
License: MIT License
Internationalized dialog for picking a single month from an infinite list of years.
Home Page: https://pub.dev/packages/month_picker_dialog
License: MIT License
Error:
Because every version of month_picker_dialog depends on flutter_localizations any from sdk which depends on intl 0.16.0, every version of month_picker_dialog requires intl 0.16.0.
So, because "appname" depends on both intl ^0.16.1 and month_picker_dialog any, version solving failed.
Running "flutter pub get" in "appname"..
pub get failed (1; So, because "appname" depends on both intl ^0.16.1 and month_picker_dialog any, version solving failed.)
Currently it's impossible to upgrade intl
from ^0.15.8
to ^0.16.0
as flutter_localizations
depends on 0.15.8
.
Please just update the rxdart ^0.26.0 to rxdart ^0.27.1
I'm using this package on my app but it's preventing me to upgrade to rxdart 0.23.x because it still depends on 0.22.x.
Could you please release a new version with updated dependency?
Thanks, in advance
Create a faster way of picking a year as for now it's quite troublesome to pick e.g. March 2030.
labels in button_bar.dart is hardcoded to OK and CANCEL
Could it use MaterialLocalizations cancelButtonLabel and okButtonLabel instead of hardcoded values?
Thank you for your library.
Please add support for PT-BR.
No matter which button I press - changing of the year, select a month, etc., the dialog dismisses automatically.
null
instead of a date is returned. I can't select a date at all this way.
I set the last and first date but the dialog can scroll to 0 year.
Can u provide a fix for that?
thanks
Text is the widget also but having a widget as param will add more flexibility
This might be my misunderstanding of flutter in general. But in order to create truly platform looking apps, you need to swap between using Material and Cupertino. This library works great with iOS when using Material only. But when using Cupertino styles, it breaks. Would be nice if it worked in both styles.
Any chance of upgrade to Flutter 2.0 and support to null-safety?
Is there a way for users to select year first before the month?
Because no versions of month_picker_dialog match >0.3.1 <0.4.0 and month_picker_dialog 0.3.1 depends on rxdart ^0.23.1, month_picker_dialog ^0.3.1 requires rxdart ^0.23.1.
And because flutter_form_bloc >=0.14.0 depends on rxdart ^0.24.0, month_picker_dialog ^0.3.1 is incompatible with flutter_form_bloc >=0.14.0.
So, because your_app depends on both flutter_form_bloc ^0.14.0 and month_picker_dialog ^0.3.1, version solving failed.
pub get failed (1; So, because your_app depends on both flutter_form_bloc ^0.14.0 and month_picker_dialog ^0.3.1, version solving failed.
Is there a way to work around this? The dependencies on the other package are also causing issues in case i try to use an older version of flutter_form_bloc
The code base has become unreadable.
Untangle the spaghetti code and write docs.
This will help people that want to contribute to the code.
There should be an IntrinsicWidth
applied to the Column
holding the header and content of the dialog.
https://github.com/hmkrivoj/month_picker_dialog/blob/9bf0d0c21243e0d57a40471a4d3234c20c0a3dbb/lib/month_picker_dialog.dart#L230
here i got error when i use this package
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:month_picker_dialog
For solutions, see https://dart.dev/go/unsound-null-safety
/C:/src/flutter_windows_2.0.6-stable/flutter/.pub-cache/hosted/pub.dartlang.org/month_picker_dialog-
0.2.3/lib/month_picker_dialog.dart:114:24: Error: Method not
found: 'ButtonTheme.bar'.
return ButtonTheme.bar()
kindly update your package which give error
Remove the 1px white border on top of the dialog
Hello, I'd like to transfer ownership of this repo.
@Macacoazul01 Would you like to have it transfered to your profile or should I transfer it to a new organization?
In my case, I have an issue with the dialog. When changing the properties roundedCornersRadius, it only changes the radius of the header and picker section but the border radius of the background Dialog still be the radius.circular(4)
How can i choose Date After Choosing Month and Year ...
If you have any idea or some solutions , please let me know.
Thank you Brother,
Originally posted by @Nieruht in #9 (comment)
If initialDate is set to DateTime(2020, 7, 12)
(july 2020) and lastDate
is set to DateTime(2020,8)
(august 2020) without setting firstDate
the calendar won't show the year 2020 at all. It'll completely exclude 2020 as a year. Only when I set firstDate to 2 years ago then it properly excluded next month.
flutter analyze
says 'ButtonTheme.bar' is deprecated and shouldn't be used
.
Rework the button bar so it doesn't use ButtonTheme.bar
.
Since Flutter has integrated many components based on the Material 3 Design System, I would like the month picker to follow this design as well. It should check the theme context to determine whether the user is using Material 3 and display the dialog accordingly, incorporating elements such as rounded corners, background surface color, and character casing. A good reference for this implementation would be the Flutter's official date picker.
Hello,
How can I override it, because when I cancel the month and year is null.
https://api.flutter.dev/flutter/material/FlatButton-class.html
This class is deprecated, please use TextButton instead.
is anything can i do to disable past month or next month ?
Flutter version: 3.13.0
month_picker_dialog version: 2.4.0
Steps to reproduce:
1 - Create a new flutter app;
2 - Add the month_picker_dialog;
3 - Add the function showMonthPicker(context: context) in the code;
4 - Try to run the project.
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/year_selector/year_button.dart:95:11: Error: No named parameter with the name 'textScaler'.
textScaler: controller.textScaleFactor != null
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_selector/month_button.dart:100:11: Error: No named parameter with the name 'textScaler'.
textScaler: controller.textScaleFactor != null
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_selected_date.dart:24:7: Error: No named parameter with the name 'textScaler'.
textScaler: controller.textScaleFactor != null
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart:32:11: Error: 'TextScaler' isn't a type.
final TextScaler? scaler = controller.textScaleFactor != null
^^^^^^^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart:50:15: Error: No named parameter with the name 'textScaler'.
textScaler: scaler,
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart:69:17: Error: No named parameter with the name 'textScaler'.
textScaler: scaler,
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart:74:17: Error: No named parameter with the name 'textScaler'.
textScaler: scaler,
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart:80:17: Error: No named parameter with the name 'textScaler'.
textScaler: scaler,
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart:33:11: Error: The getter 'TextScaler' isn't defined for the class 'HeaderRow'.
- 'HeaderRow' is from 'package:month_picker_dialog/src/month_picker_widgets/header/header_row.dart' ('../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/header/header_row.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'TextScaler'.
? TextScaler.linear(controller.textScaleFactor!)
^^^^^^^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/button_bar.dart:15:11: Error: 'TextScaler' isn't a type.
final TextScaler? scaler = controller.textScaleFactor != null
^^^^^^^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/button_bar.dart:25:17: Error: No named parameter with the name 'textScaler'.
textScaler: scaler,
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/button_bar.dart:33:17: Error: No named parameter with the name 'textScaler'.
textScaler: scaler,
^^^^^^^^^^
../fvm/versions/3.13.0/packages/flutter/lib/src/widgets/text.dart:428:9: Context: Found this candidate, but the arguments don't match.
const Text(
^^^^
../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/button_bar.dart:16:11: Error: The getter 'TextScaler' isn't defined for the class 'PickerButtonBar'.
- 'PickerButtonBar' is from 'package:month_picker_dialog/src/month_picker_widgets/button_bar.dart' ('../.pub-cache/hosted/pub.dev/month_picker_dialog-2.4.0/lib/src/month_picker_widgets/button_bar.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'TextScaler'.
? TextScaler.linear(controller.textScaleFactor!)
^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/matheus/fvm/versions/3.13.0/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (1).
I cannot get date after selected
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.