flutter_ui 0.0.9

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

banner A Flutter UI Library Include A Lot Of Convenient UI Component, Is On Developing Now. If You Want To Contribute To It, Please Fork And Do It. Enjoys!

UI Feature #

  • action sheet
  • avatar
  • badge
  • button
  • card
  • checklist
  • picker
  • datetime picker
  • divider
  • header
  • image
  • input
  • indicator
  • infinite scroll
  • load more
  • message box
  • picker
  • pricing
  • tooltip
  • progress
  • radio
  • rating
  • search
  • slider
  • social icon
  • swipe
  • switch
  • toast
  • markdown
  • browser

How to Use #

  1. add flutter_ui to your pubspec.yaml
  2. if you want to use Material UI,the UI Component name Start with M import 'package:flutter_ui/material.dart';, but if you
  3. if you want to use Cupertino UI,the UI Component name Start with C import 'package:flutter_ui/cupertino.dart';

Demo #

Please Visit example

License #

MIT

[0.0.9] - TODO: Add release date.

  • add ui widget and description.

example/README.md

example #

A new Flutter UI Example application.

Getting Started #

  1. ActionSheet

normal action sheet

    _pressed() {
        CActionSheet.show(
            title: 'yes or no',
            subTitle: 'please choose',
            context: context,
            callback: () {
              Navigator.pop(context);
              print('you choosed Yes');
            });
          }

custom action sheet

        var actions = [
          CAction(
              title: 'Apple',
              pressCallback: () {
                {
                  Navigator.of(context).pop();
                  MToast.show(msg: 'apple');
                }
              }),
          CAction(
              title: 'Banana',
              pressCallback: () {
                Navigator.of(context).pop();
                MToast.show(msg: 'Banana');
              }),
          CAction(
              title: 'Orange',
              pressCallback: () {
                Navigator.of(context).pop();
                MToast.show(msg: 'Orange');
              }),
          CAction(
              title: 'Watermelon',
              pressCallback: () {
                Navigator.of(context).pop();
                MToast.show(msg: 'Watermelon');
              }),
        ];
      

      _onPressed(){
      	CActionSheet.showCustom(
            context: context,
            actions: actions,
            title: 'fruits',
            subTitle: 'please choosed one of them');
      }

  1. Toast
  // where you want to show toast,please do like this.
  void _pressed(String message, MPosition position) {
      MToast.show(
          msg: message, position: position, length: MToastLength.SHORT);
    }

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_ui: ^0.0.9

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_ui/cupertino.dart';
import 'package:flutter_ui/material.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
56
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
74
Learn more about scoring.

We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (cached_network_image).

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
cached_network_image ^1.1.2+1 1.1.3 2.0.0
flutter 0.0.0
fluttertoast ^3.1.3 3.1.3
webview_flutter ^0.3.15+1 0.3.19+5
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.11 1.14.12
convert 2.1.1
crypto 2.1.4
flutter_cache_manager 1.1.3
http 0.12.0+4
http_parser 3.1.3
meta 1.1.8
path 1.6.4
path_provider 1.5.1
pedantic 1.9.0
platform 2.2.1
sky_engine 0.0.99
source_span 1.6.0
sqflite 1.2.0
string_scanner 1.0.5
synchronized 2.1.1
term_glyph 1.1.0
typed_data 1.1.6
uuid 2.0.4
vector_math 2.0.8
Dev dependencies
flutter_test