drawable 0.0.1
drawable: ^0.0.1 copied to clipboard

Flutter Android

Flutter plugin to load Android drawables. This helps to share graphics between Flutter and Android

DRAWABLE #

pub.dev GitHub Workflow Status Sponsoring likes popularity pub points


🚧 THIS IS A PRE-RELEASE 🚧 🚧 USE AT YOUR OWN RISK 🚧

A Flutter plugin to share images between Flutter and Android. For iOS please use ios_platform_images.

Usage #

import 'package:drawable/drawable.dart';

Widget build(BuildContext context) {
  return MaterialApp(
    home: Scaffold(
      body: Center(
        child: Image(image: DrawableProvider.load("flutter")),
      ),
    ),
  );
}

Supported drawables #

Drawable typeSupportedAdditional notes
AdaptiveIconDrawableβœ…
BitmapDrawableβœ…
ColorDrawableβœ…
ColorStateListDrawableβœ…
GradientDrawableβœ…
LayerDrawableβœ…
LevelListDrawableβœ…
PictureDrawableβœ…
ShapeDrawableβœ…
StateListDrawableβœ…
TransitionDrawableβœ…
VectorDrawableβœ…Because of limitations of Android, this is not a vector on the Flutter side.

Please note, that all of these drawable are currently converted to a bitmap. More sophisticated support is planned, but currently not available.

List of currently unsupported drawables:

Also see:

πŸ“£ Author #

Sponsoring #

I'm working on my packages on my spare time, but I don't have as much time as I would like. If this package or any other package I maintain is helping you, please consider to sponsor me. By doing so, I will prioritize your issues or your pull-requests before the others.

0
likes
80
pub points
32%
popularity

Publisher

uekoetter.dev

Flutter plugin to load Android drawables. This helps to share graphics between Flutter and Android

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on drawable