designpx 0.0.17
designpx: ^0.0.17 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 .
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: 390, height: 844, child: Home());
}
}
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
return Container(
color: Colors.orangeAccent,
width: w300,
height: h500,
child: Text(
'Home Page',
style: TextStyle(fontSize: f14),
),
);
}
}