drawable 0.0.1 copy "drawable: ^0.0.1" to clipboard
drawable: ^0.0.1 copied to clipboard

discontinued
outdated

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

example/lib/main.dart

import 'package:drawable/drawable.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: ListView(
          children: [
            const ListTile(title: Text('BitmapDrawable')),
            Image(image: DrawableProvider.load('flutter')),
            const ListTile(title: Text('VectorDrawable')),
            Image(image: DrawableProvider.load('child_care')),
          ],
        ),
      ),
    );
  }
}
13
likes
90
points
42
downloads

Publisher

verified publisheruekoetter.dev

Weekly Downloads

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