flutter_common_exports 0.1.0

  • Readme
  • Changelog
  • Installing
  • 87

flutter_common_exports #

A Flutter package includes some common exportation of constants and utils.

Requirement #

Flutter SDK: >=1.12.13

Contents #

  • Cookie from dart:io.
  • dartx
  • DateFormat from intl.
  • OKToast.
  • Constants:
    • lessThanOne
    • lessThanZero
    • moreThanOne
    • moreThanZero
    • betweenZeroAndOne
    • currentTime
    • currentTimeStamp
    • localizationsDelegates
    • supportedLocales
  • Extensions:
    • BrightnessExtension:
      • brightness.isDark
      • brightness.isLight
    • BuildContextExtension:
      • context.mediaQuery
      • context.themeData
    • ColorExtension:
      • color.swatch
      • color.getMaterialColorValues
  • Screens:
    • MediaQueryData
    • fixedFontSize
    • scale (devicePixelRatio)
    • width
    • widthPixels
    • height
    • heightPixels
    • aspectRatio
    • textScaleFactor
    • navigationBarHeight
    • topSafeHeight
    • bottomSafeHeight
    • safeHeight
    • updateStatusBarStyle
  • Utils:
    • Input utils:
      • insertText
      • showKeyboard
      • hideKeyboard
    • realDebugPrint
    • doubleBackExit
    • doNothing
    • checkPermissions
  • Widgets:
    • emptyCounterBuilder
    • maxBorderRadius
    • PlatformProgressIndicator
    • NoSplashFactory
    • NoGlowScrollBehavior

[0.1.0] - 20200526 #

  • Initial release.

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_common_exports: ^0.1.0

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

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

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

Because:

  • flutter_common_exports that is a package requiring null.

Package not compatible with runtime flutter-web on Web

Because:

  • package:flutter_common_exports/flutter_common_exports.dart that imports:
  • package:flutter_common_exports/src/widgets.dart that imports:
  • dart:io

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and flutter_common_exports.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
dartx ^0.4.1 0.4.2
flutter 0.0.0
flutter_localizations 0.0.0
intl ^0.16.1 0.16.1
oktoast ^2.3.2 2.3.2
Transitive dependencies
characters 1.0.0 1.1.0-nullsafety
charcode 1.1.3
collection 1.14.12 1.14.13
convert 2.1.1
crypto 2.1.5
meta 1.1.8 1.2.2
path 1.6.4 1.7.0
sky_engine 0.0.99
time 1.3.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety