Giter Site home page Giter Site logo

yk-unit / flr Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 1.0 7.05 MB

🚚 MIGRATED: This repo is deprecated now, and has been migrated to https://github.com/Fly-Mix/flr-cli

License: MIT License

Ruby 100.00%
flr flutter-r r-dart cli flutter asset assets-management

flr's Introduction

Hi there 👋

flr's People

Contributors

yk-unit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

xxxshaozi

flr's Issues

Build Error in flutter 1.12: The method 'AssetSvg.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.

Flutter Version Info

Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (2 weeks ago) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0

Build Error

../../flutter/.pub-cache/git/r_dart_library-0582b4fa70e3350f51d79e64cc096e4396d1a6c5/lib/asset_svg.dart:34:24: Error: The method 'AssetSvg.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
  ImageStreamCompleter load(AssetSvg key) {
                       ^
../../flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
  ImageStreamCompleter load(T key, DecoderCallback decode);

如何设定packageName

执行flr run后的AssetResource的packageName都是空
AssetResource(
"images/business_basketball_calendar_day.png",
packageName: null);
实际需要根据子package设定对应的packageName,否则主工程执行加载图片报错

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.