leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
772 stars 106 forks source link

type 'Null' is not a subtype of type 'Map<String, dynamic>' #127

Closed dishant-livebird closed 1 year ago

dishant-livebird commented 1 year ago

While make deb package using "flutter_distributor package --platform linux --targets deb" this command .

type 'Null' is not a subtype of type 'Map<String, dynamic>'

0 FlutterDistributor.distributeOptions (package:flutter_distributor/src/flutter_distributor.dart:67:16)

1 FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:138:35)

2 CommandPackage.run (file:///home/ubuntu/.pub-cache/hosted/pub.dartlang.org/flutter_distributor-0.3.1/bin/command_package.dart:131:24)

3 CommandRunner.runCommand (package:args/command_runner.dart:212:27)

4 main (file:///home/ubuntu/.pub-cache/hosted/pub.dartlang.org/flutter_distributor-0.3.1/bin/main.dart:47:17)

dishant-livebird commented 1 year ago

This issue is resolved. i have mistake that distribute_options.yaml file is empty in project root directory. and after that i got another error like,

type 'Null' is not a subtype of type 'Map<String, dynamic>'

0 loadMakeConfigYaml (package:app_package_maker/src/app_package_maker.dart:11:15)

1 MakeDebConfigLoader.load (package:flutter_app_packager/src/makers/deb/make_deb_config.dart:365:17)

2 FlutterAppPackager.package (package:flutter_app_packager/src/flutter_app_packager.dart:34:39)

3 FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:181:51)

#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13) I solved this by remove empty lines in make_config.yaml file in linux/packaging/deb directory.