flutterskel 0.0.17

  • Readme
  • Changelog
  • Installing
  • 48

flutterskel #

A flutter package that provides the basic architecture

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] - TODO: Add release date.

  • TODO: Describe initial release.

[0.0.10]

  • Changed provider to builder based

[0.0.11]

  • Exposed a few methods from ProviderBuilder

[0.0.12]

  • Exposed buildTheme instead of buildThemeRepository in ProviderBuilder

[0.0.13]

  • Added getScreenWidget method in UrlRouter

[0.0.14]

  • Removed unrequired and possibly buggy casting on StringsRepository

[0.0.17]

  • Simplified usage of stateless widget providers by removing the context parameter for every call.

Use this package as a library

1. Depend on it

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


dependencies:
  flutterskel: ^0.0.17

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:flutterskel/configuration/Configuration.dart';
import 'package:flutterskel/provider/ProviderBuilder.dart';
import 'package:flutterskel/resources/colors/ColorResources.dart';
import 'package:flutterskel/resources/dimensions/DimensionResources.dart';
import 'package:flutterskel/resources/fonts/FontResources.dart';
import 'package:flutterskel/resources/strings/StringResources.dart';
import 'package:flutterskel/resources/strings/StringsRepository.dart';
import 'package:flutterskel/resources/themes/ThemeRepository.dart';
import 'package:flutterskel/resources/themes/ThemeResources.dart';
import 'package:flutterskel/routing/page/PageRouter.dart';
import 'package:flutterskel/routing/url/UrlRouter.dart';
import 'package:flutterskel/userinformation/UserInformationRepository.dart';
import 'package:flutterskel/userinformation/UserProfileModel.dart';
import 'package:flutterskel/widgets/stateful/RawBaseStatefulWidget.dart';
import 'package:flutterskel/widgets/stateless/RawStatelessWidget.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
18
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
44
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Health suggestions

Fix lib/widgets/stateless/RawStatelessWidget.dart. (-0.50 points)

Analysis of lib/widgets/stateless/RawStatelessWidget.dart reported 1 hint:

line 18 col 16: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: RawBaseStatelessWidget._context

Format lib/configuration/Configuration.dart.

Run flutter format to format lib/configuration/Configuration.dart.

Format lib/provider/ProviderBuilder.dart.

Run flutter format to format lib/provider/ProviderBuilder.dart.

Fix additional 12 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/resources/colors/ColorResources.dart (Run flutter format to format lib/resources/colors/ColorResources.dart.)
  • lib/resources/dimensions/DimensionResources.dart (Run flutter format to format lib/resources/dimensions/DimensionResources.dart.)
  • lib/resources/fonts/FontResources.dart (Run flutter format to format lib/resources/fonts/FontResources.dart.)
  • lib/resources/strings/StringResources.dart (Run flutter format to format lib/resources/strings/StringResources.dart.)
  • lib/resources/strings/StringsRepository.dart (Run flutter format to format lib/resources/strings/StringsRepository.dart.)
  • lib/resources/themes/ThemeRepository.dart (Run flutter format to format lib/resources/themes/ThemeRepository.dart.)
  • lib/resources/themes/ThemeResources.dart (Run flutter format to format lib/resources/themes/ThemeResources.dart.)
  • lib/routing/page/PageRouter.dart (Run flutter format to format lib/routing/page/PageRouter.dart.)
  • lib/routing/url/UrlRouter.dart (Run flutter format to format lib/routing/url/UrlRouter.dart.)
  • lib/userinformation/UserInformationRepository.dart (Run flutter format to format lib/userinformation/UserInformationRepository.dart.)
  • lib/userinformation/UserProfileModel.dart (Run flutter format to format lib/userinformation/UserProfileModel.dart.)
  • lib/widgets/stateful/RawBaseStatefulWidget.dart (Run flutter format to format lib/widgets/stateful/RawBaseStatefulWidget.dart.)

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/shannonrodricks/flutterskel was unreachable.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (provider).

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 flutterskel.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

The package description is too short. (-6 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
flutter 0.0.0
provider >=3.0.0+1 <4.0.0 3.2.0 4.0.0-dev
rxdart >=0.22.0 <1.0.0 0.22.6 0.23.0-dev.3
shared_preferences >=0.5.3+2 <1.0.0 0.5.4+8 0.5.6
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
shared_preferences_platform_interface 1.0.1
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test