Skip to content

Commit 49db735

Browse files
ci: bump version to v0.8.11
1 parent 90c3198 commit 49db735

15 files changed

Lines changed: 93 additions & 53 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [0.8.11]
4+
5+
- Released @ 11/2025 (UTC)
6+
- Update dependencies
7+
38
## [0.8.10]
49

510
- Released @ 6/2025 (UTC)

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[![banner](https://github.com/dev-cetera/df_screen/blob/v0.8.10/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
1+
[![banner](https://github.com/dev-cetera/df_screen/blob/v0.8.11/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
22

33
[![pub](https://img.shields.io/pub/v/df_screen.svg)](https://pub.dev/packages/df_screen)
4-
[![tag](https://img.shields.io/badge/Tag-v0.8.10-purple?logo=github)](https://github.com/dev-cetera/df_screen/tree/v0.8.10)
4+
[![tag](https://img.shields.io/badge/Tag-v0.8.11-purple?logo=github)](https://github.com/dev-cetera/df_screen/tree/v0.8.11)
55
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
66
[![sponsor](https://img.shields.io/badge/Sponsor-grey?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
77
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/t0mb3rr)
@@ -50,4 +50,3 @@ If you're enjoying this package and find it valuable, consider showing your appr
5050
## LICENSE
5151

5252
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_screen/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_screen/main/LICENSE) for more information.
53-

lib/src/_utils/screen_calculator.dart

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class ScreenCalculator {
5656
late bool _isNeitherHorizontalNorVertical;
5757

5858
/// Whether the aspect ratio of the screen is that of a mobile phone.
59-
bool get isAspectRatioMobile => sizeVerticalBias.aspectRatio > MIN_MOBILE_ASPECT_RATIO;
59+
bool get isAspectRatioMobile =>
60+
sizeVerticalBias.aspectRatio > MIN_MOBILE_ASPECT_RATIO;
6061

6162
//
6263
//
@@ -95,29 +96,29 @@ const MIN_MOBILE_ASPECT_RATIO = 4.0 / 3.0;
9596

9697
/// The smallest of the following common aspect ratios for mobile phones (4.0 / 3.0)
9798
double get minMobileAspectRatio => {
98-
// Samsungs
99-
16.0 / 10.0,
100-
// Pixels, Samsungs
101-
16.0 / 9.0,
102-
// Pixels, most iPhones before 2018
103-
18.0 / 9.0,
104-
// Pixels
105-
18.5 / 9.0,
106-
18.7 / 9.0,
107-
19.0 / 10.0,
108-
// Pixels
109-
19.0 / 9.0,
110-
// Pixels and most iPhones after 2018
111-
19.5 / 9.0,
112-
3.0 / 2.0,
113-
// Old iPhones, and many tablets!
114-
4.0 / 3.0,
115-
5.0 / 3.0,
116-
// Samsungs
117-
2.10 / 1,
118-
20.0 / 9.0,
119-
193 / 90,
120-
}.reduce((a, b) => a <= b ? a : b);
99+
// Samsungs
100+
16.0 / 10.0,
101+
// Pixels, Samsungs
102+
16.0 / 9.0,
103+
// Pixels, most iPhones before 2018
104+
18.0 / 9.0,
105+
// Pixels
106+
18.5 / 9.0,
107+
18.7 / 9.0,
108+
19.0 / 10.0,
109+
// Pixels
110+
19.0 / 9.0,
111+
// Pixels and most iPhones after 2018
112+
19.5 / 9.0,
113+
3.0 / 2.0,
114+
// Old iPhones, and many tablets!
115+
4.0 / 3.0,
116+
5.0 / 3.0,
117+
// Samsungs
118+
2.10 / 1,
119+
20.0 / 9.0,
120+
193 / 90,
121+
}.reduce((a, b) => a <= b ? a : b);
121122

122123
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
123124

lib/src/_utils/surface.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ class Surface extends StatelessWidget {
5151

5252
@override
5353
Widget build(BuildContext context) {
54-
final $color = decoration?.color ?? color ?? Theme.of(context).colorScheme.surface;
54+
final $color =
55+
decoration?.color ?? color ?? Theme.of(context).colorScheme.surface;
5556
final $borderRadius = decoration?.borderRadius ?? borderRadius;
56-
final $decoration = decoration?.copyWith(color: $color, borderRadius: $borderRadius) ??
57+
final $decoration =
58+
decoration?.copyWith(color: $color, borderRadius: $borderRadius) ??
5759
BoxDecoration(color: $color, borderRadius: $borderRadius);
5860
return ClipRRect(
5961
borderRadius: $borderRadius,

lib/src/_utils/view_insets_builder.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ class _State extends State<ViewInsetsBuilder> with WidgetsBindingObserver {
9898

9999
void _updateViewInsets() {
100100
final viewInsets = View.of(context).viewInsets;
101-
final reachedMax = viewInsets.top > _viewInsets.top ||
101+
final reachedMax =
102+
viewInsets.top > _viewInsets.top ||
102103
viewInsets.bottom > _viewInsets.bottom ||
103104
viewInsets.left > _viewInsets.left ||
104105
viewInsets.right > _viewInsets.right;
105-
final reachedMin = viewInsets.top == 0 &&
106+
final reachedMin =
107+
viewInsets.top == 0 &&
106108
viewInsets.bottom == 0 &&
107109
viewInsets.left == 0 &&
108110
viewInsets.right == 0;

lib/src/app_layout.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ enum AppLayout {
5959
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
6060

6161
ScreenCalculator getCurrentScreenCalculator() {
62-
final firstDisplay = WidgetsBinding.instance.platformDispatcher.displays.first;
62+
final firstDisplay =
63+
WidgetsBinding.instance.platformDispatcher.displays.first;
6364
final displaySize = firstDisplay.size;
6465
final displayPixelRatio = firstDisplay.devicePixelRatio;
6566
final screenSize = displaySize / displayPixelRatio;

lib/src/screen_state.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ import '../df_screen.dart';
2222

2323
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2424

25-
abstract base class ScreenState<TScreen extends Screen,
26-
TController extends ScreenController> extends State<TScreen> {
25+
abstract base class ScreenState<
26+
TScreen extends Screen,
27+
TController extends ScreenController
28+
>
29+
extends State<TScreen> {
2730
//
2831
//
2932
//

lib/src/screen_states/adaptive_screen_state/_adaptive_screen_state_interface.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ import '/src/_src.g.dart';
1919

2020
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2121

22-
abstract base class AdaptiveScreenStateInterface<TScreen extends Screen,
23-
TController extends ScreenController> extends ScreenState<TScreen, TController> {
22+
abstract base class AdaptiveScreenStateInterface<
23+
TScreen extends Screen,
24+
TController extends ScreenController
25+
>
26+
extends ScreenState<TScreen, TController> {
2427
/// Activates for mobile device screen sizes. Override to customize the
2528
/// layout for these sizes. The [body] includes the widget returned by
2629
/// [mobileBody].

lib/src/screen_states/adaptive_screen_state/adaptive_screen_state.dart

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ import '_adaptive_screen_state_interface.dart';
2323

2424
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2525

26-
abstract base class AdaptiveScreenState<TScreen extends Screen,
27-
TController extends ScreenController>
26+
abstract base class AdaptiveScreenState<
27+
TScreen extends Screen,
28+
TController extends ScreenController
29+
>
2830
extends AdaptiveScreenStateInterface<TScreen, TController>
2931
with
3032
MobileFrameWideLayoutScreenMixin,
@@ -106,19 +108,23 @@ abstract base class AdaptiveScreenState<TScreen extends Screen,
106108
Padding(padding: MediaQuery.of(context).padding, child: body1),
107109
sideInsets(
108110
EdgeInsets.only(
109-
left: letAsOrNull<PreferredSizeWidget>(
111+
left:
112+
letAsOrNull<PreferredSizeWidget>(
110113
leftSide,
111114
)?.preferredSize.width ??
112115
0.0,
113-
right: letAsOrNull<PreferredSizeWidget>(
116+
right:
117+
letAsOrNull<PreferredSizeWidget>(
114118
rightSide,
115119
)?.preferredSize.width ??
116120
0.0,
117-
top: letAsOrNull<PreferredSizeWidget>(
121+
top:
122+
letAsOrNull<PreferredSizeWidget>(
118123
topSide,
119124
)?.preferredSize.height ??
120125
0.0,
121-
bottom: letAsOrNull<PreferredSizeWidget>(
126+
bottom:
127+
letAsOrNull<PreferredSizeWidget>(
122128
bottomSide,
123129
)?.preferredSize.height ??
124130
0.0,

lib/src/screen_states/adaptive_screen_state/mixins/default_no_scrollable_align_screen_mixin.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ import '/src/_src.g.dart';
1919

2020
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2121

22-
base mixin DefaultNoScrollableAlignScreenMixin<TScreen extends Screen,
23-
TController extends ScreenController> on AdaptiveScreenStateInterface<TScreen, TController> {
22+
base mixin DefaultNoScrollableAlignScreenMixin<
23+
TScreen extends Screen,
24+
TController extends ScreenController
25+
>
26+
on AdaptiveScreenStateInterface<TScreen, TController> {
2427
@override
2528
Widget align(BuildContext context, Widget body, EdgeInsets sideInsets) {
2629
return Align(

0 commit comments

Comments
 (0)