pixel_perfect 1.0.4 pixel_perfect: ^1.0.4 copied to clipboard
Development tool that helps you make your flutter application "pixel perfect"
pixel_perfect #
Add semi transparent image to your screen.
Getting started #
Add pixel_perfect in your pubspec.yaml
dependencies.
dependencies:
pixel_perfect: any
How To Use #
Simple use
Add assets folder with images to your pubspec.yaml
uses-material-design: true
assets:
- assets/
Import the following package in your dart file
import 'package:pixel_perfect/pixel_perfect.dart';
return PixelPerfect(
assetPath: 'assets/design.png', // path to your asset image
child: Scaffold(
..
)
)
Extended use
return PixelPerfect.extended(
image: Image.asset( // any image file
'assets/element.png',
scale: 2,
),
initBottom: 20, // default bottom distance (optional)
offset: Offset.zero, // default image offset (optional)
child: Scaffold(
..
)
)