Giter Club home page Giter Club logo

flutter_time_picker_spinner's People

Contributors

icemanbsi avatar micimize 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

Watchers

 avatar  avatar  avatar  avatar  avatar

flutter_time_picker_spinner's Issues

License Missing

Hey there :)

Could you please provide a license, so that everyone knows if they can use your plugin.

Null safety

Can you upgrade this package to null safety?

Migration issue with Flutter 3.0

This type error occures when I want to launch my app:

Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

Doesn't work well on iOS

The visualisation is very weird on my iOS and gets stuck all the time. On Android it seems to work fine.

I used latest version of flutter_time_picker_spinner (1.0.6+1)

flutter doctor -v

✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale en-BE)
• Flutter version 1.22.4 at /Users/app/flutter
• Framework revision 1aafb3a8b9 (10 days ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/merijnmestdagh/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
• Merijn’s iPhone (mobile) • 00008020-0009601E1199002E • ios • iOS 13.4.1

Haptic Feedback

Time picker doesn't have vibration like iOS time picker =(

Feature Requesting

Good one.

But need customization like min date, max date and initial date. And by default current time is selecting, better not to select by default and let user can select it.

Null aware issue found

../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_time_picker_spinner-2.0.0/lib/flutter_time_picker_spinner.dart:221:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../fvm/versions/3.0.5/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!
    ^

unable to change time manually

i want to change time manually by using setstate, but setting "time" props of the widget in "onTimeChange" callback does not work

Plugin breaks after some scrolling

Hi @icemanbsi, thank you for making the plugin available.

While I was trying to implement it in one of our projects I get the following error:

I/flutter (22078): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter (22078): The following assertion was thrown while handling a gesture:
I/flutter (22078): 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 492 pos 12: '_hold == null':
I/flutter (22078): is not true.
I/flutter (22078):
I/flutter (22078): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (22078): more information in this error message to help you determine and fix the underlying cause.
I/flutter (22078): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (22078):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (22078):
I/flutter (22078): When the exception was thrown, this was the stack:
I/flutter (22078): #2      ScrollableState._handleDragStart 
package:flutter/…/widgets/scrollable.dart:492
I/flutter (22078): #3      DragGestureRecognizer._checkStart.<anonymous closure> 
package:flutter/…/gestures/monodrag.dart:364
I/flutter (22078): #4      GestureRecognizer.invokeCallback 
package:flutter/…/gestures/recognizer.dart:182
I/flutter (22078): #5      DragGestureRecognizer._checkStart 
package:flutter/…/gestures/monodrag.dart:364
I/flutter (22078): #6      DragGestureRecognizer.acceptGesture 
package:flutter/…/gestures/monodrag.dart:298
I/flutter (22078): #7      GestureArenaManager._resolveByDefault 
package:flutter/…/gestures/arena.dart:250
I/flutter (22078): #8      GestureArenaManager._tryToResolveArena.<anonymous closure> 
package:flutter/…/gestures/arena.dart:231
I/flutter (22078): (elided 12 frames from class _AssertionError and package dart:async)
I/flutter (22078):
I/flutter (22078): Handler: "onStart"
I/flutter (22078): Recognizer:
I/flutter (22078):   VerticalDragGestureRecognizer#e44da
I/flutter (22078): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (22078): Another exception was thrown: 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 497 pos 12: '_hold == null || _drag == null': is not true.
I/chatty  (22078): uid=10202(org.appiko.setup) Thread-2 identical 10 lines
I/flutter (22078): Another exception was thrown: 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 497 pos 12: '_hold == null || _drag == null': is not true.
I/flutter (22078): Another exception was thrown: 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 503 pos 12: '_hold == null || _drag == null': is not true.
TimePickerSpinner(
              highlightedTextStyle:
                  TextStyle(fontSize: 28, color: Theme.of(context).accentColor),
              normalTextStyle: TextStyle(fontSize: 24),
              is24HourMode: false,
              isForce2Digits: true,
              minutesInterval: 5,
              onTimeChange: (time) {},
            );

Am I missing something?

I found the same behavior on the example app.

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.