dependencies:
flutter_responsive_framework: ^0.0.1
import 'package:flutter_responsive_framework/flutter_responsive_framework.dart';
ResponsiveUIWidget(
builder: (context, orientation, screenType) {
return MaterialApp(
home: HomePage(),
);
},
);
Container(
width: LayoutSizeHelper.h(50), // This will take 50% of the screen's width
height: 30.h // This will take 30% of the screen's height
)
Text('Responsive Framework', style: TextStyle(fontSize: 16.px))
or
Text('Responsive Framework', style: TextStyle(fontSize: FontSizeHelper.NORMAL_TEXT_MEDIUM))
ResponsiveUIHelper.buildTitleTextWidget(titleText);
ResponsiveUIHelper.buildNormalTextWidget(text);
ResponsiveUIHelper.buildPlatformWidget(
tabletWidget: YourTabletWidget(),
mobileWidget: YourMobileWidget(),
);
ResponsiveUIHelper.buildPlatformWidgetWithOrientation(
tabletPortraitWidget: YourTabletPortraitWidget(),
tabletLandScapetWidget: YourTabletLandScapeWidget(),
mobilPortraitWidget: YourMobilePortraitWidget(),
mobilLandScapeWidget: YourMobileLandScapeWidget(),
);
If you have any suggestions or issues, feel free to open an issue
If you would like to contribute, feel free to create a PR