GithubHelp home page GithubHelp logo

abbasihamed / show_network_image Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 283 KB

License: BSD 3-Clause "New" or "Revised" License

Dart 10.65% Kotlin 0.25% Swift 2.34% Objective-C 0.08% CMake 37.80% C++ 42.32% C 2.88% HTML 3.68%

show_network_image's Introduction

Have you ever had problems using canvaskit with images without cors? With this package, you can display images without cors.

Features

  • Working with canvaskit
  • Support formats: jpg, png, gif
  • Support images without cors

Installation

Add show_network_image as a dependency.

import :

import 'package:show_network_image/show_network_image.dart';

Usage

Show Image

ShowNetworkImage(
        imageSrc:
        'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3QCRzKMKYOH5-VALcnTfMD_xclnCTXS5z1SBMTGkYkGJYKGnjb-9trbxaPN2pn4kInp9Bcn4Uti1Cs65Kv9bKtNnjLBNEsdz3Hivryd2aLuWzTx9Uy2Jmv_0MbhkKQjNT0fuGcSFXfXzg2S1Icl1aaNe73ReuFaOSbjcJubK2n7mWk3TvyLSVhW9l/s1600/mavi1.png',
        mobileBoxFit: BoxFit.fill,
        mobileHeight: 300,
        mobileWidth: 300,
    ),

show_network_image's People

Contributors

abbasihamed avatar

Watchers

 avatar

show_network_image's Issues

PlatformException: unregistered_view_type

I get this error:


Error: PlatformException(unregistered_view_type, A HtmlElementView widget is trying to create a platform view with an unregistered type: <imageurl>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49  throw_
packages/flutter/src/services/message_codecs.dart 653:7                       decodeEnvelope
packages/flutter/src/services/platform_channel.dart 315:18                    _invokeMethod
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50            <fn>
dart-sdk/lib/async/zone.dart 1660:54                                          runUnary
dart-sdk/lib/async/future_impl.dart 147:18                                    handleValue
dart-sdk/lib/async/future_impl.dart 767:44                                    handleValueCallback
dart-sdk/lib/async/future_impl.dart 796:13                                    _propagateToListeners
dart-sdk/lib/async/future_impl.dart 567:5                                     [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 640:7                                     callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                              _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                               _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15           <fn>

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
Assertion failed: "Cannot render platform views: 21. These views have not been created, or they have been deleted."

When the exception was thrown, this was the stack: 
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49      throw_
lib/_engine/engine/canvaskit/embedded_views.dart 533:9                            submitFrame
lib/_engine/engine/canvaskit/rasterizer.dart 36:33                                draw
lib/_engine/engine/canvaskit/renderer.dart 349:16                                 renderScene
lib/_engine/engine/platform_dispatcher.dart 645:14                                render
lib/ui/window.dart 107:50                                                         render
packages/flutter/src/rendering/view.dart 240:15                                   compositeFrame
packages/flutter/src/rendering/binding.dart 520:18                                drawFrame
packages/flutter/src/widgets/binding.dart 865:13                                  drawFrame
packages/flutter/src/rendering/binding.dart 381:5                                 [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1289:15                               [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1218:9                                handleDrawFrame
packages/flutter/src/scheduler/binding.dart 1076:5                                [_handleDrawFrame]
lib/_engine/engine/platform_dispatcher.dart 1168:13                               invoke
lib/_engine/engine/platform_dispatcher.dart 218:5                                 invokeOnDrawFrame
lib/_engine/engine/initialization.dart 190:45                                     <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37  _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39  dcall
====================================================================================================

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.