Skip to content

Commit c8d4cd9

Browse files
committedFeb 22, 2021
Fix issue #1
1 parent e254e51 commit c8d4cd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎lib/login.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ class _LoginPageState extends State<LoginPage> {
99
@override
1010
Widget build(BuildContext context) {
1111
final Size size = MediaQuery.of(context).size;
12+
final double fontScale = MediaQuery.of(context).textScaleFactor;
1213

1314
return Scaffold(
1415
body: SingleChildScrollView(
1516
child: Container(
1617
width: size.width,
1718
height: size.height,
18-
padding: EdgeInsets.only(left: 20, right: 20, top: 150, bottom: 80),
19+
padding: EdgeInsets.only(left: 20, right: 20, top: size.height * 0.14, bottom: size.height * 0.06),
1920
child: Column(
2021
crossAxisAlignment: CrossAxisAlignment.start,
2122
mainAxisAlignment: MainAxisAlignment.spaceBetween,
2223
children: [
23-
Text("Hello, \nWelcome Back", style: Theme.of(context).textTheme.headline1,),
24+
Text("Hello, \nWelcome Back", style: Theme.of(context).textTheme.headline1.copyWith(fontSize: size.width * 0.1,)),
2425
Column(
2526
crossAxisAlignment: CrossAxisAlignment.end,
2627
children: [

0 commit comments

Comments
 (0)
Please sign in to comment.