flutter_kz_library 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 61

lutter_kz_library #

reusable function in flutter

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] #

initial commit #

  • Initial commit

[0.0.2] #

format coding #

  • Format Sliver folder
  • fix 'inheritFromWidgetOfExactType' is deprecated

[0.0.3] #

fix error #

  • 'silverFillRemainingWidget' is missing

[0.0.4] #

mapping model for bubbleBottomItem #

  • 'BubbleBottomBarItemModel'

[0.0.5] #

remove BubbleBottomBarItemModel (wrong), add function return bubbleBottomItem #

  • remove 'BubbleBottomBarItemModel'
  • add 'bubbleBottomItem' function

[0.0.6] #

add SpeedDialChild #

  • add 'SpeedDialChild' function

[0.0.7] #

add example #

  • add example project

[0.0.8] #

change content in sliver list #

  • change content in sliver list

[0.0.9] #

update content in sliver page #

  • update content in sliver page

[0.1.0] #

update instant access for easy access helper functions #

  • update instant access for easy access helper functions

[0.1.1] #

update statics #

  • update statics

[0.1.2] #

add input field #

  • add input field

[0.1.3] #

add password field #

  • add password field

example/lib/main.dart

import 'package:flutter/material.dart';

import 'src/screens/routes.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.teal,
      ),
      home: Routes(),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_kz_library: ^0.1.3

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_kz_library/flutter_kz_library.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
27
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
61
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 does not support Flutter platform linux

Because of import path [package:flutter_kz_library/flutter_kz_library.dart, package:flutter_kz_library/src/widgets/Widget.dart, package:flutter_kz_library/src/widgets/forms/InputWidget.dart, package:flutter_form_builder/flutter_form_builder.dart, package:flutter_form_builder/src/fields/form_builder_typeahead.dart, package:flutter_typeahead/flutter_typeahead.dart, package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart] that declares support for platforms: android, ios

Package does not support Flutter platform macos

Because of import path [package:flutter_kz_library/flutter_kz_library.dart, package:flutter_kz_library/src/widgets/Widget.dart, package:flutter_kz_library/src/widgets/forms/InputWidget.dart, package:flutter_form_builder/flutter_form_builder.dart, package:flutter_form_builder/src/fields/form_builder_typeahead.dart, package:flutter_typeahead/flutter_typeahead.dart, package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart] that declares support for platforms: android, ios

Package does not support Flutter platform web

Because of import path [package:flutter_kz_library/flutter_kz_library.dart, package:flutter_kz_library/src/widgets/Widget.dart, package:flutter_kz_library/src/widgets/forms/InputWidget.dart, package:flutter_form_builder/flutter_form_builder.dart, package:flutter_form_builder/src/fields/form_builder_typeahead.dart, package:flutter_typeahead/flutter_typeahead.dart, package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart] that declares support for platforms: android, ios

Package does not support Flutter platform windows

Because of import path [package:flutter_kz_library/flutter_kz_library.dart, package:flutter_kz_library/src/widgets/Widget.dart, package:flutter_kz_library/src/widgets/images/ImageWidget.dart, package:flutter_kz_library/src/helpers/FunctionHelper.dart, package:url_launcher/url_launcher.dart] that declares support for platforms: android, ios, linux, macos, web

Package not compatible with SDK dart

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

Health suggestions

Fix lib/src/widgets/forms/InputWidget.dart. (-1.49 points)

Analysis of lib/src/widgets/forms/InputWidget.dart reported 3 hints:

line 1 col 8: Unused import: 'dart:convert'.

line 309 col 11: 'label' is deprecated and shouldn't be used. Use child instead. Will be removed in the next major version..

line 384 col 11: 'label' is deprecated and shouldn't be used. Use child instead. Will be removed in the next major version..

Fix lib/src/statics/Statics.dart. (-0.50 points)

Analysis of lib/src/statics/Statics.dart reported 1 hint:

line 4 col 8: Unused import: 'package:flutter_kz_library/flutter_kz_library.dart'.

Format lib/src/helpers/DioHelper.dart.

Run flutter format to format lib/src/helpers/DioHelper.dart.

Fix additional 14 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/helpers/FilePickerHelper.dart (Run flutter format to format lib/src/helpers/FilePickerHelper.dart.)
  • lib/src/helpers/FunctionHelper.dart (Run flutter format to format lib/src/helpers/FunctionHelper.dart.)
  • lib/src/helpers/Helper.dart (Run flutter format to format lib/src/helpers/Helper.dart.)
  • lib/src/helpers/ProgressDialogHelper.dart (Run flutter format to format lib/src/helpers/ProgressDialogHelper.dart.)
  • lib/src/helpers/SqlHelper.dart (Run flutter format to format lib/src/helpers/SqlHelper.dart.)
  • lib/src/helpers/ToastHelper.dart (Run flutter format to format lib/src/helpers/ToastHelper.dart.)
  • lib/src/reduxs/Redux.dart (Run flutter format to format lib/src/reduxs/Redux.dart.)
  • lib/src/reduxs/reducers/TokenReducer.dart (Run flutter format to format lib/src/reduxs/reducers/TokenReducer.dart.)
  • lib/src/widgets/Widget.dart (Run flutter format to format lib/src/widgets/Widget.dart.)
  • lib/src/widgets/bottombars/BubbleBottomBarWidget.dart (Run flutter format to format lib/src/widgets/bottombars/BubbleBottomBarWidget.dart.)
  • lib/src/widgets/slivers/SABTWidget.dart (Run flutter format to format lib/src/widgets/slivers/SABTWidget.dart.)
  • lib/src/widgets/slivers/SliverViewListWidget.dart (Run flutter format to format lib/src/widgets/slivers/SliverViewListWidget.dart.)
  • lib/src/widgets/slivers/SliverViewPageWidget.dart (Run flutter format to format lib/src/widgets/slivers/SliverViewPageWidget.dart.)
  • lib/src/widgets/speeddials/SpeedDialWidget.dart (Run flutter format to format lib/src/widgets/speeddials/SpeedDialWidget.dart.)

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 (carousel_slider).

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
bottom_navy_bar ^5.3.2 5.4.0
bubble_bottom_bar ^1.2.0 1.2.0
carousel_slider ^1.4.1 1.4.1 2.2.1
dio ^3.0.9 3.0.9
file_picker ^1.5.1 1.12.0
flutter 0.0.0
flutter_form_builder ^3.8.1 3.11.4 4.0.0-alpha.5
flutter_pagewise ^1.2.3 1.2.3
flutter_redux ^0.6.0 0.6.0
flutter_speed_dial ^1.2.5 1.2.5
intl ^0.16.1 0.16.1
path ^1.6.4 1.7.0
progress_dialog ^1.2.1 1.2.4
redux ^4.0.0 4.0.0
rflutter_alert ^1.0.3 1.0.3
sqflite ^1.3.0 1.3.1
toast ^0.1.5 0.1.5
url_launcher ^5.4.2 5.5.0
Transitive dependencies
archive 2.0.13
args 1.6.0
asn1lib 0.6.5
async 2.4.2
basic_utils 2.5.5
charcode 1.1.3
collection 1.14.12 1.14.13
convert 2.1.1
country_pickers 1.3.0
crypto 2.1.5
date_range_picker 1.0.6
datetime_picker_formfield 1.0.0
file_picker_platform_interface 1.2.0
flutter_chips_input 1.8.3 1.9.0-dev.3
flutter_colorpicker 0.3.4
flutter_keyboard_visibility 3.2.1
flutter_plugin_android_lifecycle 1.0.8
flutter_touch_spin 1.0.1
flutter_typeahead 1.8.5
flutter_web_plugins 0.0.0
group_radio_button 1.0.1
http 0.12.1
http_parser 3.1.4
image 2.1.14
image_picker 0.6.7+4
image_picker_platform_interface 1.1.0
json_annotation 3.0.1
logging 0.11.4
meta 1.1.8 1.2.1
pedantic 1.9.0 1.9.1
petitparser 3.0.4
phone_number 0.6.2+3
platform_detect 1.4.0
plugin_platform_interface 1.0.2
pointycastle 1.0.2
pub_semver 1.4.4
random_string 2.1.0
rating_bar 0.2.0
signature 3.2.0
sky_engine 0.0.99
source_span 1.7.0
sqflite_common 1.0.2+1
string_scanner 1.0.5
synchronized 2.2.0+1
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
url_launcher_linux 0.0.1+1
url_launcher_macos 0.0.1+7
url_launcher_platform_interface 1.0.7
url_launcher_web 0.1.2
validators 2.0.1
vector_math 2.0.8
vin_decoder 0.1.2
xml 4.2.0
Dev dependencies
flutter_test