migrate_to_web 0.0.2 migrate_to_web: ^0.0.2 copied to clipboard
Migrate current Flutter projects to be run with Flutter for Web.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add migrate_to_web
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
migrate_to_web: ^0.0.2
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:migrate_to_web/main.dart';
import 'package:migrate_to_web/web_file_strings.dart';