https://github.com/sharmadhiraj/flutter_drawable_mipmap
Flutter plugin to show drawable and mipmap from android.
https://github.com/sharmadhiraj/flutter_drawable_mipmap
android dart flutter flutter-plugin method-ca platform-channel widget
Last synced: 2 months ago
JSON representation
Flutter plugin to show drawable and mipmap from android.
- Host: GitHub
- URL: https://github.com/sharmadhiraj/flutter_drawable_mipmap
- Owner: sharmadhiraj
- License: apache-2.0
- Created: 2020-05-21T08:55:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T08:21:52.000Z (11 months ago)
- Last Synced: 2024-12-31T19:12:49.062Z (5 months ago)
- Topics: android, dart, flutter, flutter-plugin, method-ca, platform-channel, widget
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_drawable_mipmap
- Size: 90.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Drawable Mipmap
Flutter [plugin](https://pub.dev/packages/flutter_drawable_mipmap) to show drawable and mipmap from
Android.## Getting Started
1. [Installation Guide](https://pub.dev/packages/flutter_drawable_mipmap/install)
2. [Example](https://pub.dev/packages/flutter_drawable_mipmap/example)## Usage Guide
#### Use this widget to show drawable in Flutter app
```dart
Drawable("name")
```#### Use this widget to show mipmap in Flutter app
```dart
Mipmap("name")
```#### Accessing Drawable or Mipmap as Uint8List
If you prefer accessing mipmap or drawable resources as memory (Uint8List) rather than as widgets,
allowing you to create custom widgets or perform other operations with the image data, you can use
this method.```dart
Uint8List? image = await FlutterDrawableMipmap.drawableMipmap(
"drawable_or_mipmap_name_without_R.id",
Is_drawable, // true if drawable, false if mipmap
)
```
I'm always working on making improvements. If you have any feedback, issues, or suggestions, feel
free to reach out. Happy coding!