pixel_perfect 1.1.3 copy "pixel_perfect: ^1.1.3" to clipboard
pixel_perfect: ^1.1.3 copied to clipboard

Development tool that helps you make your flutter application "pixel perfect"

pixel_perfect #

Pub License: MIT style: effective dart PRs Welcome Awesome Flutter

logo

Put a semi-transparent image with the design over the top of the developed layout. It helps you to compare original design and current page.

demo1

demo2

Getting started #

Add pixel_perfect in your pubspec.yaml dependencies.

dependencies:
 pixel_perfect: any
copied to clipboard

How To Use #

Simple use

Add assets folder with images to your pubspec.yaml

  uses-material-design: true
  assets:
    - assets/
copied to clipboard

Import the following package in your dart file

import 'package:pixel_perfect/pixel_perfect.dart';
copied to clipboard

return PixelPerfect(
  assetPath: 'assets/design.png', // path to your asset image
  scale: 1 // scale value (optional)
  initBottom: 20, //  default bottom distance (optional)
  offset: Offset.zero, // default image offset (optional)
  initOpacity: 0.4 // init opacity value (optional)
  child: Scaffold(
    ..
  )
)
copied to clipboard

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)
  initOpacity: 0.4 // init opacity value (optional)
  child: Scaffold(
    ..
  )
)
copied to clipboard

Video tutorials by Learn App Code

How to Make Pixel Perfect Flutter Apps
How to Make Responsive Flutter Apps, Pixel Perfect

220
likes
150
points
9.32k
downloads

Publisher

verified publisherkherel.com

Weekly Downloads

2024.09.08 - 2025.03.23

Development tool that helps you make your flutter application "pixel perfect"

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pixel_perfect