Skip to content

Commit

Permalink
+chore: Rename pScalable to pScale for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
robmllze committed Sep 27, 2024
1 parent 1902138 commit b5718c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions lib/src/scalable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

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:df_pod/df_pod.dart' show SharedDoublePodCreator, TSharedGlobalDoublePod;
import 'package:flutter/foundation.dart' show protected;

// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Expand All @@ -22,9 +21,8 @@ final class Scalable {
Scalable._();
@protected
static final di = DI();
static final Future<TSharedGlobalDoublePod> _pValue =
static final Future<TSharedGlobalDoublePod> _pScale =
SharedDoublePodCreator.global('<AppScale.pValue>')
.then((e) => di.register<TSharedGlobalDoublePod>(_pValue));
static FutureOr<TSharedGlobalDoublePod> get pScalable =>
di.until<TSharedGlobalDoublePod>();
.then((e) => di.register<TSharedGlobalDoublePod>(_pScale));
static FutureOr<TSharedGlobalDoublePod> get pScale => di.until<TSharedGlobalDoublePod>();
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0
version: 0.5.0
repository: https://github.com/robmllze/df_scalable
funding:
- https://www.buymeacoffee.com/robmllze
Expand Down

0 comments on commit b5718c4

Please sign in to comment.