From 6417b9eb4e7a992b43b9cec272105a2ae1a28a13 Mon Sep 17 00:00:00 2001 From: Komek Hayytnazarov Date: Mon, 29 Jul 2024 11:47:12 +0500 Subject: [PATCH] cleaning --- lib/core/app/app.dart | 4 +--- lib/core/constants/assets.dart | 12 ++++++------ lib/core/constants/colors.dart | 3 --- lib/core/constants/strings.dart | 5 ----- lib/presentation/screens/login.dart | 4 ++-- lib/presentation/screens/splash.dart | 2 +- lib/presentation/screens/splash2.dart | 2 +- lib/presentation/widgets/order_header.dart | 2 +- 8 files changed, 12 insertions(+), 22 deletions(-) diff --git a/lib/core/app/app.dart b/lib/core/app/app.dart index 1a8e003..a96604e 100644 --- a/lib/core/app/app.dart +++ b/lib/core/app/app.dart @@ -1,11 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import '../../application/application.dart'; -import '../core.dart'; - import '../../di/di.dart' as di; +import '../core.dart'; class MyApp extends StatelessWidget { const MyApp({super.key}); diff --git a/lib/core/constants/assets.dart b/lib/core/constants/assets.dart index 99e0955..baa73e9 100644 --- a/lib/core/constants/assets.dart +++ b/lib/core/constants/assets.dart @@ -1,11 +1,11 @@ sealed class AppAssets { ///svg - static const String Logo = 'assets/svg/logo/logo.svg'; - static const String BoxesSvg = 'assets/svg/boxes.svg'; - static const String Trucks = 'assets/svg/trucks.svg'; + static const String logo = 'assets/svg/logo/logo.svg'; + static const String boxesSvg = 'assets/svg/boxes.svg'; + static const String trucks = 'assets/svg/trucks.svg'; ///png - static const String BoxesPng = 'assets/images/boxes.png'; - static const String TrucksPng = 'assets/images/trucks.png'; - static const String Header = 'assets/images/header.png'; + static const String boxesPng = 'assets/images/boxes.png'; + static const String trucksPng = 'assets/images/trucks.png'; + static const String header = 'assets/images/header.png'; } diff --git a/lib/core/constants/colors.dart b/lib/core/constants/colors.dart index c20af77..cc5cc8c 100644 --- a/lib/core/constants/colors.dart +++ b/lib/core/constants/colors.dart @@ -7,7 +7,4 @@ sealed class AppColors { static const Color green = Color(0xFFA2E052); static const Color grey = Color(0xFF96969C); static const Color darkGrey = Color(0xFF57575C); - static const Color CommonCyan = Color(0xff68C4C6); - static const Color GreyText = Color(0xff575757); - static const Color LightGrey = Color(0xfff1f1f1); } diff --git a/lib/core/constants/strings.dart b/lib/core/constants/strings.dart index 8176d88..d2b13fd 100644 --- a/lib/core/constants/strings.dart +++ b/lib/core/constants/strings.dart @@ -1,11 +1,6 @@ // App const String appTitle = 'Cargo App'; -const String infoText = - "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Let"; - -const String phoneNumber = "+201016381636"; // Replace with the recipient's phone number - // Storage and Databases const String articlesTableName = ''; const String databaseName = ''; diff --git a/lib/presentation/screens/login.dart b/lib/presentation/screens/login.dart index 4c6b12f..5358d2d 100644 --- a/lib/presentation/screens/login.dart +++ b/lib/presentation/screens/login.dart @@ -55,7 +55,7 @@ class _LoginScreenState extends State { child: Column( children: [ SvgPicture.asset( - AppAssets.Logo, + AppAssets.logo, height: AppDimensions.normalize(30), ), Space.yf(0.80), @@ -73,7 +73,7 @@ class _LoginScreenState extends State { ), ), Image.asset( - AppAssets.TrucksPng, + AppAssets.trucksPng, height: AppDimensions.normalize(52), width: double.infinity, fit: BoxFit.fill, diff --git a/lib/presentation/screens/splash.dart b/lib/presentation/screens/splash.dart index 1041b77..e07f2f5 100644 --- a/lib/presentation/screens/splash.dart +++ b/lib/presentation/screens/splash.dart @@ -50,7 +50,7 @@ class _SplashScreenState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ SvgPicture.asset( - AppAssets.Logo, + AppAssets.logo, height: AppDimensions.normalize(30), ), Space.yf(0.80), diff --git a/lib/presentation/screens/splash2.dart b/lib/presentation/screens/splash2.dart index da05b8c..ee73911 100644 --- a/lib/presentation/screens/splash2.dart +++ b/lib/presentation/screens/splash2.dart @@ -59,7 +59,7 @@ class Splash2Screen extends StatelessWidget { /// images Image.asset( - AppAssets.BoxesPng, + AppAssets.boxesPng, height: AppDimensions.normalize(90), ), Space.yf(), diff --git a/lib/presentation/widgets/order_header.dart b/lib/presentation/widgets/order_header.dart index bdcc046..2a84f70 100644 --- a/lib/presentation/widgets/order_header.dart +++ b/lib/presentation/widgets/order_header.dart @@ -13,7 +13,7 @@ class OrderHeader extends StatelessWidget { child: Stack( children: [ Image.asset( - AppAssets.Header, + AppAssets.header, fit: BoxFit.fill, ), Positioned(