flutterskel 0.0.17

  • Readme
  • Changelog
  • Installing
  • 35

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.


  • Changed provider to builder based


  • Exposed a few methods from ProviderBuilder


  • Exposed buildTheme instead of buildThemeRepository in ProviderBuilder


  • Added getScreenWidget method in UrlRouter


  • Removed unrequired and possibly buggy casting on StringsRepository


  • 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:

  flutterskel: ^0.0.17

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

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

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

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.


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.2
rxdart >=0.22.0 <1.0.0 0.23.1
shared_preferences >=0.5.3+2 <1.0.0 0.5.6+1
Transitive dependencies
collection 1.14.11 1.14.12
flutter_web_plugins 0.0.0
meta 1.1.8
shared_preferences_macos 0.0.1+4
shared_preferences_platform_interface 1.0.1
shared_preferences_web 0.1.2+3
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies