sfw_generator 1.0.6

  • Readme
  • Changelog
  • Example
  • Installing
  • 62

sfw_generator #

database generator

Not supporting foreign keys and other complicated features #

Codes to generate files #

Step 1: flutter packages pub run build_runner clean #

Step 2: flutter packages pub run build_runner build OR #

flutter packages pub run build_runner build --delete-conflicting-outputs #

Files #

* Create a new directory under lib folder named "sfw" => without quotes
* Create following dart files under sfw folder
  1. animations.dart
  2. sfw.dart
  3. strings.dart
  4. styles.dart
  5. ui.dart
  6. ui_helper.dart
  7. colors.xml
  8. constants.xml
  9. String files

sfw.dart #

### Add following details to sfw.dart file

COMMON

- const DEBUGGING_ENABLED = false;
- const TOTAL_DART_FILE_COUNT = 1; //Total dart file count of your project

DATABASE CONFIGURATION

- const DB_DART_FILE_PATH = "";//eg: lib/database.dart
- const DB_VERSION_CODE = 1;

WEB CONFIGURATION

- const WEB_DART_FILE_PATH = "web.dart";//eg: lib/web.dart
- const WEB_BASE_URL = "";//eg: https://www.google.com/

IMPORT LIBRARY CONFIGURATION

- const bool INCLUDE_CACHED_NETWORK_IMAGE = true;
- const bool INCLUDE_FLUTTER_DATE_TIME_PICKER = true;
- const bool INCLUDE_PERMISSION_HANDLER = true;
- const bool INCLUDE_FLUTTER_SPIN_KIT = true;
- const bool INCLUDE_FLUTTER_TOAST = true;
- const bool INCLUDE_DIO = true

For more info see [Sfw Flutter] (https://bitbucket.org/josephpaul0487/sfw_flutter)

THANKS #

flutter_screenutil #

json_serializable #

V1.0.6 #

  • Resolved some bugs.
  • Added example

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    StatusModel m;
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}

class Colors {}

Use this package as a library

1. Depend on it

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


dependencies:
  sfw_generator: ^1.0.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:sfw_generator/sfw_generator.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
25
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]
62
Learn more about scoring.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
analyzer ^0.39.8 0.39.11
async ^2.4.1 2.4.1
build ^1.3.0 1.3.0
flutter 0.0.0
sfw_imports ^1.0.2 1.0.2
source_gen ^0.9.5 0.9.5
xml_parser ^0.1.2 0.1.2
Transitive dependencies
_fe_analyzer_shared 5.0.0
args 1.6.0
charcode 1.1.3
collection 1.14.12 1.14.13
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
dart_style 1.3.6
glob 1.2.0
html 0.14.0+3
html_character_entities 0.1.2+4
http 0.12.1
http_parser 3.1.4
js 0.6.2
logging 0.11.4
meta 1.1.8
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pedantic 1.9.0 1.9.1
pub_semver 1.4.4
recursive_regex 0.1.3+2
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8
watcher 0.9.7+15
yaml 2.2.1