designpx 0.0.4
designpx: ^0.0.4 copied to clipboard
Implementation responsive screen with design ux/ui , You just need to add the coordinates of the design to be applied to and start working in the normal mode .
example/main.dart
import 'package:flutter/material.dart';
import 'package:designpx/designpx.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const DesignPX(width: 375, height: 812, child: Home());
}
}
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
return const Text('Home Page');
}
}