Giter Club home page Giter Club logo

circular_check_box's People

Contributors

mashnoon33 avatar not-holar avatar supercaly 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

Watchers

 avatar

circular_check_box's Issues

white active color

Setting the active color to Colors.white cause the Widget to display a white filled circle.
Maybe, in this case, the tic mark could become transparent.

Requesting new release

It seems like the package is already null safe and in this repo, the sdk version is already set to 2.12.0, so it should just be a matter of releasing a new version.

Thank you for considering!

RenderToggable not found

I couldn't fix this issue. Could you check please.

/C:/Users/xxxxxx/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/circular_check_box-1.0.4/lib/circular_check_box.dart:338:39: Error: Type 'RenderToggleable' not found.
class _RenderCircularCheckBox extends RenderToggleable {
                                      ^^^^^^^^^^^^^^^^

After migration on flutter 1.17 application wont build

Compiler message:
../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:168:13: Error: Expected 0 type arguments.
Map<Type, Action> _actionMap;
^
../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:178:23: Error: Type 'ActivateIntent' not found.
void _actionHandler(ActivateIntent intent){
^^^^^^^^^^^^^^
../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:173:25: Error: Expected 0 type arguments.
_actionMap = <Type, Action>{
^^^^^^
../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:174:38: Error: 'ActivateIntent' isn't a type.
ActivateIntent: CallbackAction(onInvoke: _actionHandler),
^^^^^^^^^^^^^^
../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:174:53: Error: Too few positional arguments: 1 required, 0 given.
ActivateIntent: CallbackAction(onInvoke: _actionHandler),
^
../flutter-sdk/packages/flutter/lib/src/widgets/actions.dart:128:9: Context: Found this candidate, but the arguments don't match.
const CallbackAction(LocalKey intentKey, {@required this.onInvoke})
^^^^^^^^^^^^^^
../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:174:7: Error: The getter 'ActivateIntent' isn't defined for the class '_CircularCheckBoxState'.

  • '_CircularCheckBoxState' is from 'package:circular_check_box/circular_check_box.dart' ('../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'ActivateIntent'.
    ActivateIntent: CallbackAction(onInvoke: _actionHandler),
    ^^^^^^^^^^^^^^
    ../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:173:40: Error: A value of type 'Map<Type, Action>' can't be assigned to a variable of type 'Map<Type, invalid-type>'.
  • 'Map' is from 'dart:core'.
  • 'Type' is from 'dart:core'.
  • 'Action' is from 'package:flutter/src/widgets/actions.dart' ('../flutter-sdk/packages/flutter/lib/src/widgets/actions.dart').
    _actionMap = <Type, Action>{
    ^
    ../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:178:23: Error: 'ActivateIntent' isn't a type.
    void _actionHandler(ActivateIntent intent){
    ^^^^^^^^^^^^^^
    ../flutter-sdk/.pub-cache/hosted/pub.dartlang.org/circular_check_box-1.0.2/lib/circular_check_box.dart:226:16: Error: The argument type 'Map<Type, invalid-type>' can't be assigned to the parameter type 'Map<LocalKey, Action Function()>'.
  • 'Map' is from 'dart:core'.
  • 'Type' is from 'dart:core'.
  • 'LocalKey' is from 'package:flutter/src/foundation/key.dart' ('../flutter-sdk/packages/flutter/lib/src/foundation/key.dart').
  • 'Action' is from 'package:flutter/src/widgets/actions.dart' ('../flutter-sdk/packages/flutter/lib/src/widgets/actions.dart').
    actions: _actionMap,
    ^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null

NoSuchMethodError was thrown during paint()

When hovering on a circle checkbox on web I receive the following error:

The following NoSuchMethodError was thrown during paint():
'<Unexpected Null Value>'
method not found
Receiver: null
Arguments: []

The relevant error-causing widget was
CircularCheckBox
lib/components/circle_checkbox.dart:38
When the exception was thrown, this was the stack
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49      throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 78:3        throwNullValueError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 490:39  _notNull
packages/flutter/src/material/toggleable.dart 500:26                              paintRadialReaction
packages/circular_check_box/circular_check_box.dart 448:5                         paint
...
The following RenderObject was being processed when the exception was fired: _RenderCircularCheckBox#56932
RenderObject: _RenderCircularCheckBox#56932
    parentData: <none> (can use size)
    constraints: BoxConstraints(w=20.0, h=20.0)
    size: Size(20.0, 20.0)
    additionalConstraints: BoxConstraints(w=32.0, h=32.0)
    value: unchecked
════════════════════════════════════════════════════════════════════════════════

iphone 12 pro simulator running 14.4 seems to work correctly, and the logic seems to be working correctly on web. My values are being correctly toggled. Just seems to be erroring on the hover animation on web.

[✓] Flutter (Channel beta, 1.26.0-17.8.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.53.2)
[✓] Connected device (2 available)```

Color options

Hello. I would be a cool feature to have color options for the checkbox. Including a transparency option. :)

Missing mouse change on hovering the checkbox

Different from the normal check box, when the mouse is on top of the circularcheckbox, there isn't a change in the cursor to show the user there is a button in that place.

I think it's possible to manually add it by wrapping your widget with a gesture detector (haven't tried), but will be nice to have this functionality by default.

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.