Skip to content

Commit e9f24b4

Browse files
committed
+refactor: Rename AppScale to Scalable
1 parent 4e6b282 commit e9f24b4

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

lib/src/_index.g.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//.title~
99

1010
// --- PUBLIC FILES ---
11-
export 'scalable_app.dart';
11+
export 'scalable.dart';
1212
export 'sc.dart';
1313
export 'sc_on_num_extension.dart';
1414

lib/src/sc_on_num_extension.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1111
//.title~
1212

13-
import 'scalable_app.dart';
13+
import 'scalable.dart';
1414

1515
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
1616

1717
extension ScOnNumExtension on num {
1818
/// Multiples the num with the current app scale.
1919
// ignore: invalid_use_of_protected_member
20-
double get sc => this * (AppScale.di.getSyncOrNull() ?? 1.0);
20+
double get sc => this * (Scalable.di.getSyncOrNull() ?? 1.0);
2121
}

lib/src/scalable_app.dart renamed to lib/src/scalable.dart

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,19 @@
1010
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1111
//.title~
1212

13-
import 'dart:async';
14-
15-
import 'package:df_di/df_di.dart';
16-
import 'package:df_pod/df_pod.dart';
17-
import 'package:flutter/widgets.dart';
13+
import 'dart:async' show FutureOr;
14+
import 'package:df_di/df_di.dart' show DI;
15+
import 'package:df_pod/df_pod.dart' show SharedDoublePodCreator, TSharedGlobalDoublePod;
16+
import 'package:flutter/foundation.dart' show protected;
1817

1918
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2019

21-
final class AppScale {
22-
AppScale._();
20+
final class Scalable {
21+
Scalable._();
2322
@protected
2423
static final di = DI();
2524
static final Future<TSharedGlobalDoublePod> _pValue =
2625
SharedDoublePodCreator.global('<AppScale.pValue>')
2726
.then((e) => di.register<TSharedGlobalDoublePod>(_pValue));
28-
static FutureOr<TSharedGlobalDoublePod> get pAppScale =>
29-
di.until<TSharedGlobalDoublePod>();
27+
static FutureOr<TSharedGlobalDoublePod> get pScalable => di.until<TSharedGlobalDoublePod>();
3028
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_scalable
1414
description: A package that provides a convenient method to scale your app UI up or down.
15-
version: 0.3.0
15+
version: 0.4.0
1616
repository: https://github.com/robmllze/df_scalable
1717
funding:
1818
- https://www.buymeacoffee.com/robmllze

0 commit comments

Comments
 (0)