diff --git a/lib/src/_index.g.dart b/lib/src/_index.g.dart index ada937f..8348703 100644 --- a/lib/src/_index.g.dart +++ b/lib/src/_index.g.dart @@ -8,7 +8,7 @@ //.title~ // --- PUBLIC FILES --- -export 'scalable_app.dart'; +export 'scalable.dart'; export 'sc.dart'; export 'sc_on_num_extension.dart'; diff --git a/lib/src/sc_on_num_extension.dart b/lib/src/sc_on_num_extension.dart index 664a4ab..b657c6d 100644 --- a/lib/src/sc_on_num_extension.dart +++ b/lib/src/sc_on_num_extension.dart @@ -10,12 +10,12 @@ // ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ //.title~ -import 'scalable_app.dart'; +import 'scalable.dart'; // ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ extension ScOnNumExtension on num { /// Multiples the num with the current app scale. // ignore: invalid_use_of_protected_member - double get sc => this * (AppScale.di.getSyncOrNull() ?? 1.0); + double get sc => this * (Scalable.di.getSyncOrNull() ?? 1.0); } diff --git a/lib/src/scalable_app.dart b/lib/src/scalable.dart similarity index 77% rename from lib/src/scalable_app.dart rename to lib/src/scalable.dart index b6b47d4..01631c9 100644 --- a/lib/src/scalable_app.dart +++ b/lib/src/scalable.dart @@ -10,21 +10,19 @@ // ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ //.title~ -import 'dart:async'; - -import 'package:df_di/df_di.dart'; -import 'package:df_pod/df_pod.dart'; -import 'package:flutter/widgets.dart'; +import 'dart:async' show FutureOr; +import 'package:df_di/df_di.dart' show DI; +import 'package:df_pod/df_pod.dart' show SharedDoublePodCreator, TSharedGlobalDoublePod; +import 'package:flutter/foundation.dart' show protected; // ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ -final class AppScale { - AppScale._(); +final class Scalable { + Scalable._(); @protected static final di = DI(); static final Future _pValue = SharedDoublePodCreator.global('') .then((e) => di.register(_pValue)); - static FutureOr get pAppScale => - di.until(); + static FutureOr get pScalable => di.until(); } diff --git a/pubspec.yaml b/pubspec.yaml index 271f0db..41e75b3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ name: df_scalable description: A package that provides a convenient method to scale your app UI up or down. -version: 0.3.0 +version: 0.4.0 repository: https://github.com/robmllze/df_scalable funding: - https://www.buymeacoffee.com/robmllze