Skip to content

Commit

Permalink
Men this screen utills
Browse files Browse the repository at this point in the history
  • Loading branch information
bukunmialuko committed Dec 27, 2021
1 parent 32ca4bb commit f65c98b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ samples, guidance on mobile development, and a full API reference.
## Flutter Screen Util
Screen utils takes into account the entire screen, including status bar

If the screen is fixed, like two parts(Like no scroll), it is better to separate them into different
boxes/sections e.g page3 of mobile screen,

I prefer to start designing with safe area

8 changes: 5 additions & 3 deletions lib/src/mobile_ui/3/page3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class _Page3State extends State<Page3> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(height: 30.h),
SizedBox(height: 37.h),
SizedBox(
height: 419.h,
child: Column(
Expand All @@ -52,13 +52,14 @@ class _Page3State extends State<Page3> {
color: Colors.black,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
height: 1,
),
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
SizedBox(height: 26.h),
SizedBox(height: 30.h),
Center(
child: Text(
"${currentPageValue.toInt()} of $maximumPage",
Expand All @@ -68,13 +69,14 @@ class _Page3State extends State<Page3> {
color: Colors.black,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
height: 1,
),
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
SizedBox(height: 8.h),
SizedBox(height: 11.h),
SizedBox(
height: 340.h,
child: PageView.builder(
Expand Down
2 changes: 2 additions & 0 deletions lib/src/mobile_ui/root/root.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_ui_kit_obkm/src/mobile_ui/1/page1.dart';
import 'package:flutter_ui_kit_obkm/src/mobile_ui/2/page2.dart';
import 'package:flutter_ui_kit_obkm/src/mobile_ui/3/page3.dart';

class RootWidget extends StatelessWidget {
Expand Down

0 comments on commit f65c98b

Please sign in to comment.