GithubHelp home page GithubHelp logo

creomobile / combos Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 13.0 262 KB

Combo Widgets for Flutter

License: BSD 3-Clause "New" or "Revised" License

Kotlin 0.30% Swift 0.30% Objective-C 0.03% Dart 87.92% HTML 0.13% C++ 9.19% C 1.08% Batchfile 1.05%

combos's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

combos's Issues

Unhandled Exception: Failed assertion: boolean expression must not be null

If you set cleanAfterSelection true for TypeaheadCombo, you invariably get the subject exception. You don't have a default value for the closeAfterItemTapped:

  void itemTapped(TItem item, {@required bool closeAfterItemTapped}) {
    if (widget.onItemTapped != null) widget.onItemTapped(item);
    if (closeAfterItemTapped) super.close();
  }

but you end up calling it with just a null argument in initState method here:

      if (widget.selected != null) super.itemTapped(null);

I even see the exception for a default value of cleanAfterSelection, if I select something and then start to delete characters from the end of the selection.

MenuItemCombo onTap not working on Mobile

When using a MenuItemCombo for iOS/Android. You need to do a long press for triggering the onItemTapped. Any one has an idea how to fix this? I just want a quick tap on an item to trigger onItemTapped

MenuItemCombo<String>( item: MenuItem( 'File', () => [ MenuItem('New'), MenuItem.separator, MenuItem('Open'), MenuItem('Save'), MenuItem('Save As...'), MenuItem.separator, MenuItem( 'Recent', () => [ MenuItem('Folders', () async { await Future.delayed( Duration(milliseconds: 500)); return [ MenuItem('Folder 1'), MenuItem('Folder 2'), MenuItem('Folder 3'), ]; }), MenuItem('Files', () async { await Future.delayed( Duration(milliseconds: 500)); return [ MenuItem('File 1'), MenuItem('File 2'), MenuItem('File 3'), ]; }), ]), MenuItem.separator, MenuItem('Exit'), ]), itemBuilder: (context, parameters, item) => Padding( padding: const EdgeInsets.all(16), child: Text(item.item), ), onItemTapped: (value) { final dialog = AlertDialog(content: Text('${value.item} tapped!')); showDialog(context: context, builder: (_) => dialog); }, )

Null-Safety

Do you have any idea about migration of this incredible package to null-safety ?
This is an important thing to a dart programmer because now programmers are upgrading their projects to null-safety (like the way I do) and need the packages to be updated too.
Thanks

Does not work on fluter 2.5

Errors when compiling on flutter 2.5

/E:/src/flutter/.pub-cache/hosted/pub.dartlang.org/combos-1.2.0/lib/combos.dart:2423:48: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/src/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
    color: Theme.of(context)?.textTheme?.body1?.color?.withOpacity(0.5),

Selector combo - add decoration

Hi

I need for selector combo _CombosDemoItem, to add a decoration, for add on top-sx label always visibile:

i need to see label and hint text ALWAYS visibile.

decoration: InputDecoration(
floatingLabelBehavior: FloatingLabelBehavior.always,
labelText: 'Label on top - sx ',
hintText: 'hint inside edit',
border: OutlineInputBorder(),
),

Thank You :)

Can not dynamic set getList

I tested the ListCombo.

  List<String> list = ['11111', '22222'];
  String value = '11111';

                    child: ListCombo<String>(
                      getList: () async {
                        await Future.delayed(const Duration(milliseconds: 500));
                        return list;
                      },

              RaisedButton(onPressed: () {
                list = ['88888', '99999'];
                value = '88888';
                setState(() {});
              }),

the popup list did not refresh.
I read the code, some variable is final or const.so it does not support modify.
please check it.

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.