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


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:

  flutter2web: any

Added code (sample config):

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


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

  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';
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 Mar 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

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.49 points)

Analysis of lib/src/upload.dart reported 3 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.

line 145 col 53: 'typed' is deprecated and shouldn't be used. Use stream.cast instead.

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.

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (asn1lib, encrypt).

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.


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.15 0.6.4
async ^2.3.0 2.4.1
crypto ^2.1.0 2.1.4
encrypt ^3.2.0 3.3.1 4.0.0
http ^0.12.0 0.12.0+4
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.6.0
charcode 1.1.3
clock 1.0.1
collection 1.14.12
convert 2.1.1
http_parser 3.1.4
meta 1.1.8
pedantic 1.9.0
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6