Browse Source

fix: padding on tablet

pull/39/head
AmirrezaChegini 1 month ago
parent
commit
c90e5f167b
  1. 4
      lib/features/home/presentation/ui/home_page.dart
  2. 4
      lib/features/level/presentation/ui/level_page.dart
  3. 6
      lib/features/question/presentation/ui/question_page.dart
  4. 2
      lib/features/question/presentation/ui/screens/diamond_screen.dart

4
lib/features/home/presentation/ui/home_page.dart

@ -44,9 +44,8 @@ class HomePage extends StatelessWidget {
Widget _music(BuildContext context) {
return PositionedDirectional(
top: setPlatform(android: MySpaces.s36, iOS: MySpaces.s0),
top: setPlatform(android: MySpaces.s36, iOS: 50),
end: MySpaces.s16,
child: SafeArea(
child: SlideDownFade(
delay: Duration(milliseconds: 200),
child: StreamBuilder<double>(
@ -60,7 +59,6 @@ class HomePage extends StatelessWidget {
),
),
),
),
);
}

4
lib/features/level/presentation/ui/level_page.dart

@ -187,8 +187,7 @@ class LevelPage extends StatelessWidget {
return Positioned(
left: MySpaces.s16,
right: MySpaces.s16,
top: setPlatform(android: MySpaces.s20, iOS: MySpaces.s0),
child: SafeArea(
top: setPlatform(android: MySpaces.s20, iOS: 50),
child: Row(
spacing: MySpaces.s16,
children: [
@ -215,7 +214,6 @@ class LevelPage extends StatelessWidget {
),
],
),
),
);
}

6
lib/features/question/presentation/ui/question_page.dart

@ -29,7 +29,6 @@ class QuestionPage extends StatelessWidget {
horizontal: setSize(context: context,
mobile: MySpaces.s16,
tablet: MySpaces.s30) ?? 0,
vertical: setPlatform(android: MySpaces.s20) ?? 0,
),
decoration: BoxDecoration(
gradient: LinearGradient(
@ -47,10 +46,9 @@ class QuestionPage extends StatelessWidget {
),
),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
setPlatform<double>(android: MySpaces.s20, iOS: 50)?.gapHeight ?? SizedBox.shrink(),
_topButtons(context),
MySpaces.s10.gapHeight,
Expanded(
@ -68,11 +66,11 @@ class QuestionPage extends StatelessWidget {
},
),
),
setPlatform<double>(android: MySpaces.s20,)?.gapHeight ?? SizedBox.shrink(),
],
),
),
),
),
);
}

2
lib/features/question/presentation/ui/screens/diamond_screen.dart

@ -7,6 +7,7 @@ import 'package:hadi_hoda_flutter/common_ui/resources/my_assets.dart';
import 'package:hadi_hoda_flutter/common_ui/resources/my_colors.dart';
import 'package:hadi_hoda_flutter/common_ui/resources/my_spaces.dart';
import 'package:hadi_hoda_flutter/common_ui/resources/my_text_style.dart';
import 'package:hadi_hoda_flutter/core/utils/gap.dart';
import 'package:hadi_hoda_flutter/core/utils/my_localization.dart';
import 'package:hadi_hoda_flutter/core/utils/screen_size.dart';
import 'package:hadi_hoda_flutter/core/utils/set_platform_size.dart';
@ -143,6 +144,7 @@ class DiamondScreen extends StatelessWidget {
_buttons(context),
],
),
MySpaces.s20.gapHeight,
],
);
}

Loading…
Cancel
Save