added padding to images

This commit is contained in:
amirrezaghabeli
2025-09-23 13:37:25 +03:30
parent f1214d8a28
commit cc9370cda6
3 changed files with 13 additions and 3 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ class _DesktopSplashPageState extends State<DesktopSplashPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: Center( body: Center(
child: Image.asset(AssetsManager.logoBigPng, fit: BoxFit.cover), child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 100),
child: Image.asset(AssetsManager.logoBigPng),
),
), ),
); );
} }
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:tm_app/core/constants/assets.dart'; import 'package:tm_app/core/constants/assets.dart';
import 'package:tm_app/core/routes/app_routes.dart'; import 'package:tm_app/core/routes/app_routes.dart';
import 'package:tm_app/core/utils/size_config.dart';
import 'package:tm_app/view_models/auth_view_model.dart'; import 'package:tm_app/view_models/auth_view_model.dart';
class MobileSplashPage extends StatefulWidget { class MobileSplashPage extends StatefulWidget {
@@ -45,8 +46,11 @@ class _MobileSplashPageState extends State<MobileSplashPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: Center( body: Center(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
child: Image.asset(AssetsManager.logoBigPng, fit: BoxFit.cover), child: Image.asset(AssetsManager.logoBigPng, fit: BoxFit.cover),
), ),
),
); );
} }
} }
+4 -1
View File
@@ -42,7 +42,10 @@ class _TabletSplashPageState extends State<TabletSplashPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: Center( body: Center(
child: Image.asset(AssetsManager.logoBigPng, fit: BoxFit.cover), child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 40),
child: Image.asset(AssetsManager.logoBigPng),
),
), ),
); );
} }