feature(registration): remove .env

This commit is contained in:
mso7nueh
2024-07-15 17:06:13 +03:00
parent 726b74a236
commit d859a15cfd
188 changed files with 2509 additions and 3147 deletions

View File

@@ -24,15 +24,13 @@ class ImageConstant {
// Блог images
static String imgRectangle14 = '$imagePath/img_rectangle_14.png';
static String imgRectangle14220x341 =
'$imagePath/img_rectangle_14_220x341.png';
static String imgRectangle14220x341 = '$imagePath/img_rectangle_14_220x341.png';
// Блог - Tab Container images
static String imgCrop = '$imagePath/img_crop.svg';
// Статья images
static String imgRectangle14220x375 =
'$imagePath/img_rectangle_14_220x375.png';
static String imgRectangle14220x375 = '$imagePath/img_rectangle_14_220x375.png';
static String imgVector = '$imagePath/img_vector.svg';
@@ -116,13 +114,11 @@ class ImageConstant {
static String imgNavBlueGray400 = '$imagePath/img_nav_blue_gray_400.svg';
static String imgNavBlueGray40024x23 =
'$imagePath/img_nav_blue_gray_400_24x23.svg';
static String imgNavBlueGray40024x23 = '$imagePath/img_nav_blue_gray_400_24x23.svg';
static String imgNavPrimary = '$imagePath/img_nav_primary.svg';
static String imgNavBlueGray40024x25 =
'$imagePath/img_nav_blue_gray_400_24x25.svg';
static String imgNavBlueGray40024x25 = '$imagePath/img_nav_blue_gray_400_24x25.svg';
static String imgEye = '$imagePath/img_eye.svg';
@@ -134,11 +130,9 @@ class ImageConstant {
static String imgEllipse142x42 = '$imagePath/img_ellipse_1_42x42.png';
static String imgIconMoreHorizontal =
'$imagePath/img_icon_more_horizontal.svg';
static String imgIconMoreHorizontal = '$imagePath/img_icon_more_horizontal.svg';
static String imgRectangle14250x311 =
'$imagePath/img_rectangle_14_250x311.png';
static String imgRectangle14250x311 = '$imagePath/img_rectangle_14_250x311.png';
static String imgIconMessageSquare = '$imagePath/img_icon_message_square.svg';

View File

@@ -8,18 +8,19 @@ class ProgressDialogUtils {
static void showProgressDialog({BuildContext? context, isCancellable = false}) async {
if (!isProgressVisible && AppRouter.navigatorKey.currentState?.overlay?.context != null) {
showDialog(
barrierDismissible: isCancellable,
context: AppRouter.navigatorKey.currentState!.overlay!.context,
builder: (BuildContext context) {
return Center(
child: CircularProgressIndicator.adaptive(
strokeWidth: 4,
valueColor: AlwaysStoppedAnimation<Color>(
Colors.white,
),
barrierDismissible: isCancellable,
context: AppRouter.navigatorKey.currentState!.overlay!.context,
builder: (BuildContext context) {
return Center(
child: CircularProgressIndicator.adaptive(
strokeWidth: 4,
valueColor: AlwaysStoppedAnimation<Color>(
Colors.white,
),
);
},);
),
);
},
);
isProgressVisible = true;
}
}

View File

@@ -3,7 +3,8 @@ import 'package:flutter/material.dart';
// This functions are responsible to make UI responsive across all the mobile devices.
MediaQueryData mediaQueryData = MediaQueryData.fromView(
WidgetsBinding.instance.platformDispatcher.views.single,);
WidgetsBinding.instance.platformDispatcher.views.single,
);
// These are the Viewport values of your Figma Design.
// These are used in the code as a reference to create your UI Responsively.
@@ -30,8 +31,7 @@ extension ResponsiveExtension on num {
double get h => ((this * _width) / FIGMA_DESIGN_WIDTH);
///This method is used to set padding/margin (for the top and bottom side) & height of the screen or widget according to the Viewport height.
double get v =>
(this * _height) / (FIGMA_DESIGN_HEIGHT - FIGMA_DESIGN_STATUS_BAR);
double get v => (this * _height) / (FIGMA_DESIGN_HEIGHT - FIGMA_DESIGN_STATUS_BAR);
///This method is used to set smallest px in image height and width
double get adaptSize {