meditab_widgets 0.0.2

  • Readme
  • Changelog
  • Installing
  • 54

meditab_widgets #

  • A widget library which would provide all the necessary things which a developer generally uses to implement some basic development and hence improve the development speed.

Usage #

Example

To use this plugin:

  • add the dependency to your pubspec.yaml file
  dependencies:
    flutter:
      sdk: flutter
    meditab_widgets:

How to use:

List<MWListViewDm> dummyDataList = [
  MWListViewDm(
      id: "1",
      title: "Vilash",
      subTitle: "Patel",
      searchMapParameters: {"phone": "9428755666"}),
  MWListViewDm(
      id: "2",
      title: "Raj",
      subTitle: "Patel",
      searchMapParameters: {"phone": "9876543210"}),
  MWListViewDm(
      id: "3",
      title: "Bhagyesh",
      subTitle: "Shah",
      searchMapParameters: {"phone": "7012371391"}),
  MWListViewDm(
      id: "4",
      title: "Peterson",
      subTitle: "England",
      searchMapParameters: {"phone": "9234355666"}),
  MWListViewDm(
      id: "5",
      title: "Shah",
      subTitle: "Khan",
      searchMapParameters: {"phone": "9999955666"}),
  MWListViewDm(
      id: "6",
      title: "Harry",
      subTitle: "Potter",
      searchMapParameters: {"phone": "94287559939"}),
  MWListViewDm(
      id: "7",
      title: "Tom",
      subTitle: "Jerry",
      searchMapParameters: {"phone": "9425435666"}),
  MWListViewDm(
      id: "8",
      title: "Rock",
      subTitle: "Patel",
      searchMapParameters: {"phone": "9428799888"}),
  MWListViewDm(
      id: "9",
      title: "Manan",
      subTitle: "Patel",
      searchMapParameters: {"phone": "9123456789"}),
  MWListViewDm(
      id: "10",
      title: "Om",
      subTitle: "Prakash",
      searchMapParameters: {"phone": "789654312"}),
  MWListViewDm(
      id: "11",
      title: "John",
      subTitle: "Appleseed",
      searchMapParameters: {"phone": "84736457437"}),
];

// The below code shows the usage
MWListView(
        items: dummyDataList,
        title: "MWListView Demo",
        enableSearch: true,
        allowMultipleSelection: true,
        showCheckMarkForMultipleSelectionInLeading: true,
        showCheckMarkForMultipleSelectionInTrailing: false,
        separator: Divider(),
        withAppBar: true,
        allowSwipeToDismiss: true,
        appbarActions: [IconButton(
            icon:Icon(Icons.delete,),
            onPressed:(){
              setState(() {
                dummyDataList.removeWhere((element) => element.isSelected);
              });
            }
        )],
      ),

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - 11 May, 2020 #

  • A widget library which would provide all the necessary things which a developer generally uses to implement some basic development and hence improve the development speed.

Use this package as a library

1. Depend on it

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


dependencies:
  meditab_widgets: ^0.0.2

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:meditab_widgets/meditab_widgets.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
12
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
54
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [meditab_widgets] that is in a package requiring null.

Health issues and suggestions

Document public APIs. (-0.30 points)

82 out of 84 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/meditab_widgets.dart. (-0.50 points)

Analysis of lib/meditab_widgets.dart reported 1 hint:

line 483 col 39: Avoid using unnecessary statements.

Maintenance suggestions

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.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and meditab_widgets.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.1
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test