flutter2web 0.0.3+3

Library for publishing Flutter Web applications to https://flutter.su

An example of how your application will work on flutter.su: https://app1.flutter.su

license.

Usage #

Adding a new app #

  • Authorize https://flutter.su/myapp
  • Add a new application in controll panel.
  • Create an rsa key to digitally sign on the site in controll app.
  • Save the key in a safe place on your computer in file public.pem.

pubspec.yaml #

Added code:

dev_dependencies:
  flutter2web: any

Added code (sample config):

flutter2web:
  path_build: "build/web"
  key_id: 4
  path_rsa_public: "d:/secret/public.pem"

Keys #

  • path_build - relative path of web application build in your project;
  • key_id - you will receive the ID of the signing key when you create a new key on the site [https://flutter.su/myapp]
  • path_rsa_public - path to signature key file

Build flutter web #

Build a flutter web application using the command:

flutter build web

Upload the application to the server #

Run the command in the terminal

flutter pub run flutter2web:upload

Problems, questions and suggestions #

All questions can be sent to email: [contact@flutter.su]

Use this package as a library

1. Depend on it

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


dependencies:
  flutter2web: ^0.0.3+3

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:flutter2web/flutter2web.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
2
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.12.21

Health issues and suggestions

Document public APIs. (-1 points)

32 out of 32 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/upload.dart. (-1 points)

Analysis of lib/src/upload.dart reported 2 hints:

line 81 col 27: DO use curly braces for all flow control structures.

line 82 col 16: DO use curly braces for all flow control structures.

Format bin/upload.dart.

Run dartfmt to format bin/upload.dart.

Format lib/flutter2web.dart.

Run dartfmt to format lib/flutter2web.dart.

Format lib/src/rsa_pem.dart.

Run dartfmt to format lib/src/rsa_pem.dart.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

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 flutter2web.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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
ansicolor ^1.0.0 1.0.2
asn1lib ^0.5.0 0.5.14
async ^2.3.0 2.4.0
crypto ^2.1.0 2.1.4
encrypt ^3.2.0 3.3.1
http ^0.12.0 0.12.0+2
path ^1.6.0 1.6.4
pointycastle ^1.0.0 1.0.2
yaml ^2.1.0 2.2.0
Transitive dependencies
args 1.5.2
charcode 1.1.2
clock 1.0.1
collection 1.14.12
convert 2.1.1
http_parser 3.1.3
meta 1.1.8
pedantic 1.9.0
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6