tecfy_basic_package 0.1.6

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

tecfy_basic_package #

Tecfy Core For Mobile Client Projects

This package for internal use, you're free to use it at your own risk! #

Interfaces/ abstract class: #

  • Base Controller
  • Base Model

Services: #

  • API Service
  • Config Server
  • ImageService
  • Notification Service
  • Theme Service

Componenet: #

  • Button with loading animation
  • Checkbox
  • Multi-Select Dropdown
  • Network Image
  • Search Box
  • Text Feild
  • Text Label

[0.0.5] - 30/03/2020. #

  • initial release.

[0.1.2] - 12/04/2020. #

  • Update Packages.

[0.1.5] - 20/05/2020. #

  • Fix bugs.
  • Apply file format
  • adding example project

[0.1.6] - 23/05/2020. #

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:tecfy_basic_package/tecfy_basic_package.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'My Application',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'My Application'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            AppButtonIconText(
              icon: Icon(Icons.add),
              label: 'Add Button'
            )
          ],
        ),
      ),
    );
  }

}

Use this package as a library

1. Depend on it

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


dependencies:
  tecfy_basic_package: ^0.1.6

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:tecfy_basic_package/tecfy_basic_package.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
48
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]
74
Learn more about scoring.

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

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health suggestions

Fix lib/controllers/base_controller.dart. (-0.50 points)

Analysis of lib/controllers/base_controller.dart reported 1 hint:

line 30 col 52: The member 'setState' can only be used within instance members of subclasses of 'package:flutter/src/widgets/framework.dart'.

Format lib/helpers/extensions.dart.

Run flutter format to format lib/helpers/extensions.dart.

Format lib/services/api.service.dart.

Run flutter format to format lib/services/api.service.dart.

Fix additional 5 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/services/navigation.service.dart (Run flutter format to format lib/services/navigation.service.dart.)
  • lib/services/theme.service.dart (Run flutter format to format lib/services/theme.service.dart.)
  • lib/views/components/search_box.dart (Run flutter format to format lib/views/components/search_box.dart.)
  • lib/views/components/text_form_feild.dart (Run flutter format to format lib/views/components/text_form_feild.dart.)
  • lib/views/components/text_form_label.dart (Run flutter format to format lib/views/components/text_form_label.dart.)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
cached_network_image ^2.0.0 2.2.0+1 2.3.0-beta
flutter 0.0.0
http ^0.12.0+4 0.12.1
http_parser ^3.1.4 3.1.4
image_picker ^0.6.4 0.6.6+4
intl ^0.16.0 0.16.1
path ^1.6.4 1.7.0
path_provider ^1.6.5 1.6.9
shared_preferences ^0.5.6+3 0.5.7+3
Transitive dependencies
charcode 1.1.3
clock 1.0.1
collection 1.14.12
convert 2.1.1
crypto 2.1.5
file 5.1.0
flutter_cache_manager 1.2.2
flutter_plugin_android_lifecycle 1.0.8
flutter_web_plugins 0.0.0
image_picker_platform_interface 1.0.0
meta 1.1.8
path_provider_macos 0.0.4+3
path_provider_platform_interface 1.0.2
pedantic 1.9.0
platform 2.2.1
plugin_platform_interface 1.0.2
rxdart 0.24.1
shared_preferences_macos 0.0.1+9
shared_preferences_platform_interface 1.0.4
shared_preferences_web 0.1.2+7
sky_engine 0.0.99
source_span 1.7.0
sqflite 1.3.0+1
sqflite_common 1.0.1
string_scanner 1.0.5
synchronized 2.2.0
term_glyph 1.1.0
typed_data 1.1.6
uuid 2.0.4
vector_math 2.0.8
Dev dependencies
flutter_test