flutter_size 0.0.3 flutter_size: ^0.0.3 copied to clipboard
You can add and get custom size,orientation of any type of widgets. In size, you can add and get width,height of the device and widgets and You also get the full height and width of particular devices [...]
Language: English
You can add and get custom size,orientation of any type of widgets. In size, you can add and get width,height of the device and widgets and You also get the full height and width of particular devices. This packages is developed for all platforms. This purpose of creating this package is to save time and increase productivity.
Get started #
Add dependency #
dependencies:
flutter_size: ^0.0.3
Features #
- Cross platform: mobile, desktop, browser
- Simple, powerful, & Easy to use
- NO native dependencies
- Time Saving & improve productivity
Usage #
import 'package:flutter_size/get_size.dart';
class GetSize extends StatefulWidget {
const GetSize({Key? key}) : super(key: key);
@override
State<GetSize> createState() => _GetSizeState();
}
class _GetSizeState extends State<GetSize> {
@override
Widget build(BuildContext context) {
return Center(child : Container(
width : context.width(0.3),
height : context.height(0.9),
),
);
}
}