File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 8
8
//.title~
9
9
10
10
// --- PUBLIC FILES ---
11
- export 'scalable_app .dart' ;
11
+ export 'scalable .dart' ;
12
12
export 'sc.dart' ;
13
13
export 'sc_on_num_extension.dart' ;
14
14
Original file line number Diff line number Diff line change 10
10
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
11
11
//.title~
12
12
13
- import 'scalable_app .dart' ;
13
+ import 'scalable .dart' ;
14
14
15
15
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
16
16
17
17
extension ScOnNumExtension on num {
18
18
/// Multiples the num with the current app scale.
19
19
// 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 );
21
21
}
Original file line number Diff line number Diff line change 10
10
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
11
11
//.title~
12
12
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;
18
17
19
18
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
20
19
21
- final class AppScale {
22
- AppScale ._();
20
+ final class Scalable {
21
+ Scalable ._();
23
22
@protected
24
23
static final di = DI ();
25
24
static final Future <TSharedGlobalDoublePod > _pValue =
26
25
SharedDoublePodCreator .global ('<AppScale.pValue>' )
27
26
.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 >();
30
28
}
Original file line number Diff line number Diff line change 12
12
13
13
name : df_scalable
14
14
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
16
16
repository : https://github.com/robmllze/df_scalable
17
17
funding :
18
18
- https://www.buymeacoffee.com/robmllze
You can’t perform that action at this time.
0 commit comments