Giter Club home page Giter Club logo

month_picker_dialog's People

Contributors

alecsplus avatar berneyw avatar hmkrivoj avatar just1982 avatar leoncolt avatar macacoazul01 avatar mono0926 avatar pongloongyeat avatar sagarzala123 avatar vov4yk avatar wesleygonalv avatar wolfteam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

month_picker_dialog's Issues

Cannot open month picker in Cupertino style.

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.

cannot run null safety

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

Make possible to hide the header row

Added the possibility to hide the arrows row:

image

  • Add the hideHeaderRow bool parameter on the package
  • Edit the header.dart file to allow the row to respond to the parameter
  • Fix the above error when the row doesn't exist:

image

Setting lastDate w/out firstDate doesn't give the correct results

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.

Add selected date radius parameter

This is a great package, And I used so many times, I love it, and I like to give to a suggestion about a selected Date Radius, make variable for selected Date radius, so we can make it small, circle for the selected Date.
( PInk Circle Radius )
month_picker_dialog

Remove rxdart dependency

  • Put month and year page controllers into main controller
  • Migrate functions
  • Initialize then there
  • Edit header code
  • Remove rxdart

Flutter pub get Failed

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.)

Untangle the spaghet

The code base has become unreadable.

Untangle the spaghetti code and write docs.

Small screen layout overflow

Hey, I love the month picker and appreciate the language implementation.

One little issue is for smaller screens (2,7 inch):

month_picker_small_screen

Material 3 dialog

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.

Dependency conflict with flutter_form_bloc 0.14.0 (rxdart version conflict)

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

Overflow by 11 pixels when the year is selected

When I set the code as follows:

showMonthPicker(
            context: context,
            ...
            locale: const Locale.fromSubtags(
                languageCode: 'zh', scriptCode: 'Hant'))

Then after selecting the year, there was an error of overflowing 11 pixels.

Screenshot from 2020-12-01 15-07-43

My env..
month_picker_dialog: 0.3.3
Flutter: 1.17.5

Update dependency rxdart

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

An error prevents the app from running

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.

evidence.mp4

ERROR LOG:

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).

OBS: This error also occur in the version 2.2.1 of month_picker_dialog.

Show year first

Is there a way for users to select year first before the month?

Dialog dismisses automatically

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.