builder_static_text 0.0.1+2

  • Readme
  • Changelog
  • Installing
  • 63

builder_static_text #

A simple way to add static text to generated source files (hello.g.dart).

The only reason for it's existence is that

  1. json_serialize does not produce code valid for strong mode implicity-dynamic: false
  2. analysis_options.yml exclude does not work correctly
  3. source_gen does not provide a header/footer option on it's own

Getting Started #

Add to pubspec.yaml

  builder_static_text: ^0.0.1

Create build.yaml and configure the builder:

          - lib/**/*.dart
          content: '// ignore_for_file: strong_mode_implicit_dynamic_parameter'

[0.0.1+2]: remove flutter dependency #

[0.0.1] - 2019-05-13 Initial release #

  • Trivial implementation :)

Use this package as a library

1. Depend on it

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

  builder_static_text: ^0.0.1+2

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:builder_static_text/builder_static_text.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 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

Health suggestions

Format lib/static_text_generator.dart.

Run dartfmt to format lib/static_text_generator.dart.

Maintenance suggestions

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

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
build ^1.1.4 1.3.0
source_gen ^0.9.4+2 0.9.5
Transitive dependencies
_fe_analyzer_shared 5.0.0
analyzer 0.39.12
args 1.6.0
async 2.4.2
charcode 1.1.3
collection 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
js 0.6.2
logging 0.11.4
meta 1.2.1
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pedantic 1.9.1
pub_semver 1.4.4
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0
watcher 0.9.7+15
yaml 2.2.1