All Projects → kherel → pixel_perfect

kherel / pixel_perfect

Licence: MIT license
Compare your design and current flutter layout.

Programming Languages

dart
5743 projects
HTML
75241 projects
swift
15916 projects

Projects that are alternatives of or similar to pixel perfect

magpie
Magpie is a visualized platform which designed to create, develop and compile your standalone flutter module.
Stars: ✭ 124 (+195.24%)
Mutual labels:  flutter-tool
json2dart
A CLI tool to help generate dart classes from json returned from API
Stars: ✭ 38 (-9.52%)
Mutual labels:  flutter-tool
codemagic-docs
Here you’ll find some essential information for setting up CI/CD for your mobile apps with Codemagic.
Stars: ✭ 63 (+50%)
Mutual labels:  flutter-tool
FallingSandSurvival
2D survival game inspired by Noita and slightly Terraria
Stars: ✭ 66 (+57.14%)
Mutual labels:  pixel-perfect
awesome
collection of awesome lists
Stars: ✭ 178 (+323.81%)
Mutual labels:  awesome-flutter

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

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
  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(
    ..
  )
)

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(
    ..
  )
)

Video tutorials by Learn App Code

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].