Skip to content

Commit 60d8b28

Browse files
committed
Warning Removed
1 parent 72182f0 commit 60d8b28

File tree

5 files changed

+22
-23
lines changed

5 files changed

+22
-23
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
## 1.0.0
1+
## 1.0.1
2+
- Initial release of Sdpify 🎉

lib/src/builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Sdpify extends StatelessWidget {
99
/// [screenType] is static variable for global access
1010
/// It can Access like [Sdpify.screenType] this
1111
///
12-
static ScreenType screenType = ScreenType.MEDIUM;
12+
static ScreenType screenType = ScreenType.medium;
1313

1414
const Sdpify({super.key, required this.builder, this.isBreakPointEnabled = false,});
1515

lib/src/config.dart

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ class Config with WidgetsBindingObserver {
1313

1414
BuildContext? _context;
1515
BoxConstraints? _constraint;
16-
Orientation? _orientation;
1716

18-
ScreenType _screenType = ScreenType.UNDEFINED;
17+
ScreenType _screenType = ScreenType.undefined;
1918

2019
double _screenWidth = 0.0;
2120
double _pixelRatio = 1.0;
@@ -37,7 +36,6 @@ class Config with WidgetsBindingObserver {
3736
}) {
3837
_context = context;
3938
_constraint = constraint;
40-
_orientation = orientation;
4139

4240
_screenWidth =
4341
isBreakPointEnabled
@@ -64,47 +62,47 @@ class Config with WidgetsBindingObserver {
6462
_scaleFactor =
6563
(_screenWidth / DeviceConstant.desktopWidth) *
6664
DeviceConstant.desktopScale;
67-
_screenType = ScreenType.ULTRA_LARGE;
65+
_screenType = ScreenType.ultraLarge;
6866

6967
/// For Tablet Devices ( >= 768)
7068
///
7169
} else if (_screenWidth >= DeviceConstant.tabletWidth) {
7270
_scaleFactor =
7371
(_screenWidth / DeviceConstant.tabletWidth) *
7472
DeviceConstant.tabletScale;
75-
_screenType = ScreenType.EXTRA_LARGE;
73+
_screenType = ScreenType.extraLarge;
7674

7775
/// For Extra Large Mobile Device (>= 600)
7876
///
7977
} else if (_screenWidth >= DeviceConstant.extraLargeMobileWidth) {
8078
_scaleFactor =
8179
(_screenWidth / DeviceConstant.extraLargeMobileWidth) *
8280
DeviceConstant.extraLargeMobileScale;
83-
_screenType = ScreenType.LARGE;
81+
_screenType = ScreenType.large;
8482

8583
/// For Large Mobile Device ( >= 480)
8684
///
8785
} else if (_screenWidth >= DeviceConstant.largeMobileWidth) {
8886
_scaleFactor =
8987
(_screenWidth / DeviceConstant.largeMobileWidth) *
9088
DeviceConstant.largeMobileScale;
91-
_screenType = ScreenType.LARGE;
89+
_screenType = ScreenType.large;
9290

9391
/// For Medium Mobile Device ( >= 375)
9492
///
9593
} else if (_screenWidth >= DeviceConstant.mobileWidth) {
9694
_scaleFactor =
9795
(_screenWidth / DeviceConstant.mobileWidth) *
9896
DeviceConstant.mobileScale;
99-
_screenType = ScreenType.MEDIUM;
97+
_screenType = ScreenType.medium;
10098

10199
/// For Small Mobile Device ( >= 320)
102100
///
103101
} else {
104102
_scaleFactor =
105103
(_screenWidth / DeviceConstant.smallMobileWidth) *
106104
DeviceConstant.smallMobileScale;
107-
_screenType = ScreenType.SMALL;
105+
_screenType = ScreenType.small;
108106
}
109107
}
110108

lib/src/screen_type.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ part of '../sdpify.dart';
22

33
enum ScreenType {
44

5-
UNDEFINED,
5+
undefined,
66

7-
/// [SMALL] Defines for
7+
/// [small] Defines for
88
/// Small Sizes Mobile Devices
99
///
10-
SMALL,
10+
small,
1111

12-
/// [MEDIUM] Defines for
12+
/// [medium] Defines for
1313
/// Medium Sizes Mobile Devices
1414
///
15-
MEDIUM,
15+
medium,
1616

17-
/// [LARGE] Defines for
17+
/// [large] Defines for
1818
/// Large Sizes Mobile Devices
19-
LARGE,
19+
large,
2020

21-
/// [EXTRA_LARGE] Defines for Tablets
21+
/// [extraLarge] Defines for Tablets
2222
///
23-
EXTRA_LARGE,
23+
extraLarge,
2424

25-
/// [ULTRA_LARGE] Defines for Desktop
25+
/// [ultraLarge] Defines for Desktop
2626
///
27-
ULTRA_LARGE,
27+
ultraLarge,
2828
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sdpify
22
description: "Sdpify - Scalable Density Pixels for Responsive UI"
3-
version: 1.0.0
3+
version: 1.0.1
44

55
repository: https://github.com/shariarunix/Sdpify
66
homepage: https://github.com/shariarunix/Sdpify

0 commit comments

Comments
 (0)