flutter_item_widget 1.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

flutter_item_widget #

a common left right item widget container. support All platform.

Usage #

to use this plugin, add flutter_item_widget as a dependency in pubspec.yaml file

dependencies:
        flutter_item_widget: ^1.0.1

Example #

import 'package:flutter_item_widget/flutter_item_widget.dart';


...
ItemWidget(
              bgColor: Colors.amber,
              widgetLeft: Text(
                "负责人",
                style: TextStyle(
                    color: Color.fromRGBO(156, 167, 198, 1), fontSize: 13),
              ),
              widgetRight: Text(
                "张三",
                style: TextStyle(
                    color: Color.fromRGBO(156, 167, 198, 1), fontSize: 13),
              ),
            ),
            ItemWidget(
              width: 200,
              bgColor: Colors.blue,
              widgetLeft: Text(
                "我的",
                style: TextStyle(color: Colors.white, fontSize: 13),
              ),
              widgetRight: Image.asset(
                "res/img/arrow_right.png",
                width: 10,
                fit: BoxFit.contain,
                height: 10,
              )
...

效果图

Available Properties #

  • width:num|宽度,默认屏幕宽度
  • weightLeft:int|左边占的比例,默认1
  • weightRight:int|右边占的比例,默认1
  • alignmentLeft:Alignment|左边的对其方式,默认Alignment.centerLeft
  • alignmentRight:Alignment|右边的对其方式,默认Alignment.centerRight
  • bgColor:Color|背景颜色,默认Scaffold的背景色
  • widgetLeft:Widget|左边的widget,必须
  • widgetRight:Widget|右边的widget,必须

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

1.0.1 #

  • update readme.md

1.0.0 #

  • release version

0.0.5 #

  • delete example's README.md spare line

0.0.4 #

  • add example staff

0.0.3 #

  • add analysis_options.yaml file
  • add field's doc

0.0.2 #

  • update README.md.

0.0.1 #

  • initial release.

example/README.md

url_launcher_example #

Demonstrates how to use the url_launcher plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_item_widget: ^1.0.1

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

We analyzed this package on Jul 9, 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 [flutter_item_widget] that is in a package requiring null.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.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 2.1.0-nullsafety
Dev dependencies
flutter_test