Showing
12 changed files
with
248 additions
and
107 deletions
| @@ -15,6 +15,13 @@ packages: | @@ -15,6 +15,13 @@ packages: | ||
| 15 | url: "https://pub.dartlang.org" | 15 | url: "https://pub.dartlang.org" |
| 16 | source: hosted | 16 | source: hosted |
| 17 | version: "0.39.10" | 17 | version: "0.39.10" |
| 18 | + archive: | ||
| 19 | + dependency: transitive | ||
| 20 | + description: | ||
| 21 | + name: archive | ||
| 22 | + url: "https://pub.dartlang.org" | ||
| 23 | + source: hosted | ||
| 24 | + version: "2.0.13" | ||
| 18 | args: | 25 | args: |
| 19 | dependency: transitive | 26 | dependency: transitive |
| 20 | description: | 27 | description: |
| @@ -28,7 +35,7 @@ packages: | @@ -28,7 +35,7 @@ packages: | ||
| 28 | name: async | 35 | name: async |
| 29 | url: "https://pub.dartlang.org" | 36 | url: "https://pub.dartlang.org" |
| 30 | source: hosted | 37 | source: hosted |
| 31 | - version: "2.4.2" | 38 | + version: "2.4.1" |
| 32 | bloc: | 39 | bloc: |
| 33 | dependency: "direct main" | 40 | dependency: "direct main" |
| 34 | description: | 41 | description: |
| @@ -99,13 +106,6 @@ packages: | @@ -99,13 +106,6 @@ packages: | ||
| 99 | url: "https://pub.dartlang.org" | 106 | url: "https://pub.dartlang.org" |
| 100 | source: hosted | 107 | source: hosted |
| 101 | version: "7.1.0" | 108 | version: "7.1.0" |
| 102 | - characters: | ||
| 103 | - dependency: transitive | ||
| 104 | - description: | ||
| 105 | - name: characters | ||
| 106 | - url: "https://pub.dartlang.org" | ||
| 107 | - source: hosted | ||
| 108 | - version: "1.0.0" | ||
| 109 | charcode: | 109 | charcode: |
| 110 | dependency: transitive | 110 | dependency: transitive |
| 111 | description: | 111 | description: |
| @@ -120,13 +120,6 @@ packages: | @@ -120,13 +120,6 @@ packages: | ||
| 120 | url: "https://pub.dartlang.org" | 120 | url: "https://pub.dartlang.org" |
| 121 | source: hosted | 121 | source: hosted |
| 122 | version: "1.0.2" | 122 | version: "1.0.2" |
| 123 | - clock: | ||
| 124 | - dependency: transitive | ||
| 125 | - description: | ||
| 126 | - name: clock | ||
| 127 | - url: "https://pub.dartlang.org" | ||
| 128 | - source: hosted | ||
| 129 | - version: "1.0.1" | ||
| 130 | code_builder: | 123 | code_builder: |
| 131 | dependency: transitive | 124 | dependency: transitive |
| 132 | description: | 125 | description: |
| @@ -140,7 +133,7 @@ packages: | @@ -140,7 +133,7 @@ packages: | ||
| 140 | name: collection | 133 | name: collection |
| 141 | url: "https://pub.dartlang.org" | 134 | url: "https://pub.dartlang.org" |
| 142 | source: hosted | 135 | source: hosted |
| 143 | - version: "1.14.13" | 136 | + version: "1.14.12" |
| 144 | convert: | 137 | convert: |
| 145 | dependency: transitive | 138 | dependency: transitive |
| 146 | description: | 139 | description: |
| @@ -154,7 +147,7 @@ packages: | @@ -154,7 +147,7 @@ packages: | ||
| 154 | name: crypto | 147 | name: crypto |
| 155 | url: "https://pub.dartlang.org" | 148 | url: "https://pub.dartlang.org" |
| 156 | source: hosted | 149 | source: hosted |
| 157 | - version: "2.1.5" | 150 | + version: "2.1.4" |
| 158 | csslib: | 151 | csslib: |
| 159 | dependency: transitive | 152 | dependency: transitive |
| 160 | description: | 153 | description: |
| @@ -183,13 +176,6 @@ packages: | @@ -183,13 +176,6 @@ packages: | ||
| 183 | url: "https://pub.dartlang.org" | 176 | url: "https://pub.dartlang.org" |
| 184 | source: hosted | 177 | source: hosted |
| 185 | version: "1.2.0" | 178 | version: "1.2.0" |
| 186 | - fake_async: | ||
| 187 | - dependency: transitive | ||
| 188 | - description: | ||
| 189 | - name: fake_async | ||
| 190 | - url: "https://pub.dartlang.org" | ||
| 191 | - source: hosted | ||
| 192 | - version: "1.1.0" | ||
| 193 | fixnum: | 179 | fixnum: |
| 194 | dependency: transitive | 180 | dependency: transitive |
| 195 | description: | 181 | description: |
| @@ -270,6 +256,13 @@ packages: | @@ -270,6 +256,13 @@ packages: | ||
| 270 | url: "https://pub.dartlang.org" | 256 | url: "https://pub.dartlang.org" |
| 271 | source: hosted | 257 | source: hosted |
| 272 | version: "3.1.4" | 258 | version: "3.1.4" |
| 259 | + image: | ||
| 260 | + dependency: transitive | ||
| 261 | + description: | ||
| 262 | + name: image | ||
| 263 | + url: "https://pub.dartlang.org" | ||
| 264 | + source: hosted | ||
| 265 | + version: "2.1.12" | ||
| 273 | io: | 266 | io: |
| 274 | dependency: transitive | 267 | dependency: transitive |
| 275 | description: | 268 | description: |
| @@ -304,7 +297,7 @@ packages: | @@ -304,7 +297,7 @@ packages: | ||
| 304 | name: matcher | 297 | name: matcher |
| 305 | url: "https://pub.dartlang.org" | 298 | url: "https://pub.dartlang.org" |
| 306 | source: hosted | 299 | source: hosted |
| 307 | - version: "0.12.8" | 300 | + version: "0.12.6" |
| 308 | meta: | 301 | meta: |
| 309 | dependency: "direct main" | 302 | dependency: "direct main" |
| 310 | description: | 303 | description: |
| @@ -367,7 +360,7 @@ packages: | @@ -367,7 +360,7 @@ packages: | ||
| 367 | name: path | 360 | name: path |
| 368 | url: "https://pub.dartlang.org" | 361 | url: "https://pub.dartlang.org" |
| 369 | source: hosted | 362 | source: hosted |
| 370 | - version: "1.7.0" | 363 | + version: "1.6.4" |
| 371 | pedantic: | 364 | pedantic: |
| 372 | dependency: transitive | 365 | dependency: transitive |
| 373 | description: | 366 | description: |
| @@ -375,6 +368,13 @@ packages: | @@ -375,6 +368,13 @@ packages: | ||
| 375 | url: "https://pub.dartlang.org" | 368 | url: "https://pub.dartlang.org" |
| 376 | source: hosted | 369 | source: hosted |
| 377 | version: "1.9.0" | 370 | version: "1.9.0" |
| 371 | + petitparser: | ||
| 372 | + dependency: transitive | ||
| 373 | + description: | ||
| 374 | + name: petitparser | ||
| 375 | + url: "https://pub.dartlang.org" | ||
| 376 | + source: hosted | ||
| 377 | + version: "2.4.0" | ||
| 378 | pool: | 378 | pool: |
| 379 | dependency: transitive | 379 | dependency: transitive |
| 380 | description: | 380 | description: |
| @@ -463,7 +463,7 @@ packages: | @@ -463,7 +463,7 @@ packages: | ||
| 463 | name: stack_trace | 463 | name: stack_trace |
| 464 | url: "https://pub.dartlang.org" | 464 | url: "https://pub.dartlang.org" |
| 465 | source: hosted | 465 | source: hosted |
| 466 | - version: "1.9.5" | 466 | + version: "1.9.3" |
| 467 | stream_channel: | 467 | stream_channel: |
| 468 | dependency: transitive | 468 | dependency: transitive |
| 469 | description: | 469 | description: |
| @@ -498,7 +498,7 @@ packages: | @@ -498,7 +498,7 @@ packages: | ||
| 498 | name: test_api | 498 | name: test_api |
| 499 | url: "https://pub.dartlang.org" | 499 | url: "https://pub.dartlang.org" |
| 500 | source: hosted | 500 | source: hosted |
| 501 | - version: "0.2.17" | 501 | + version: "0.2.15" |
| 502 | timing: | 502 | timing: |
| 503 | dependency: transitive | 503 | dependency: transitive |
| 504 | description: | 504 | description: |
| @@ -512,7 +512,7 @@ packages: | @@ -512,7 +512,7 @@ packages: | ||
| 512 | name: typed_data | 512 | name: typed_data |
| 513 | url: "https://pub.dartlang.org" | 513 | url: "https://pub.dartlang.org" |
| 514 | source: hosted | 514 | source: hosted |
| 515 | - version: "1.2.0" | 515 | + version: "1.1.6" |
| 516 | uuid: | 516 | uuid: |
| 517 | dependency: "direct main" | 517 | dependency: "direct main" |
| 518 | description: | 518 | description: |
| @@ -541,6 +541,13 @@ packages: | @@ -541,6 +541,13 @@ packages: | ||
| 541 | url: "https://pub.dartlang.org" | 541 | url: "https://pub.dartlang.org" |
| 542 | source: hosted | 542 | source: hosted |
| 543 | version: "1.1.0" | 543 | version: "1.1.0" |
| 544 | + xml: | ||
| 545 | + dependency: transitive | ||
| 546 | + description: | ||
| 547 | + name: xml | ||
| 548 | + url: "https://pub.dartlang.org" | ||
| 549 | + source: hosted | ||
| 550 | + version: "3.6.1" | ||
| 544 | yaml: | 551 | yaml: |
| 545 | dependency: transitive | 552 | dependency: transitive |
| 546 | description: | 553 | description: |
| @@ -549,5 +556,5 @@ packages: | @@ -549,5 +556,5 @@ packages: | ||
| 549 | source: hosted | 556 | source: hosted |
| 550 | version: "2.2.1" | 557 | version: "2.2.1" |
| 551 | sdks: | 558 | sdks: |
| 552 | - dart: ">=2.9.0-14.0.dev <3.0.0" | 559 | + dart: ">=2.7.0 <3.0.0" |
| 553 | flutter: ">=1.16.0" | 560 | flutter: ">=1.16.0" |
| 1 | # Generated by pub | 1 | # Generated by pub |
| 2 | # See https://dart.dev/tools/pub/glossary#lockfile | 2 | # See https://dart.dev/tools/pub/glossary#lockfile |
| 3 | packages: | 3 | packages: |
| 4 | + archive: | ||
| 5 | + dependency: transitive | ||
| 6 | + description: | ||
| 7 | + name: archive | ||
| 8 | + url: "https://pub.dartlang.org" | ||
| 9 | + source: hosted | ||
| 10 | + version: "2.0.13" | ||
| 11 | + args: | ||
| 12 | + dependency: transitive | ||
| 13 | + description: | ||
| 14 | + name: args | ||
| 15 | + url: "https://pub.dartlang.org" | ||
| 16 | + source: hosted | ||
| 17 | + version: "1.6.0" | ||
| 4 | async: | 18 | async: |
| 5 | dependency: transitive | 19 | dependency: transitive |
| 6 | description: | 20 | description: |
| 7 | name: async | 21 | name: async |
| 8 | url: "https://pub.dartlang.org" | 22 | url: "https://pub.dartlang.org" |
| 9 | source: hosted | 23 | source: hosted |
| 10 | - version: "2.4.2" | 24 | + version: "2.4.1" |
| 11 | boolean_selector: | 25 | boolean_selector: |
| 12 | dependency: transitive | 26 | dependency: transitive |
| 13 | description: | 27 | description: |
| @@ -15,34 +29,34 @@ packages: | @@ -15,34 +29,34 @@ packages: | ||
| 15 | url: "https://pub.dartlang.org" | 29 | url: "https://pub.dartlang.org" |
| 16 | source: hosted | 30 | source: hosted |
| 17 | version: "2.0.0" | 31 | version: "2.0.0" |
| 18 | - characters: | 32 | + charcode: |
| 19 | dependency: transitive | 33 | dependency: transitive |
| 20 | description: | 34 | description: |
| 21 | - name: characters | 35 | + name: charcode |
| 22 | url: "https://pub.dartlang.org" | 36 | url: "https://pub.dartlang.org" |
| 23 | source: hosted | 37 | source: hosted |
| 24 | - version: "1.0.0" | ||
| 25 | - charcode: | 38 | + version: "1.1.3" |
| 39 | + collection: | ||
| 26 | dependency: transitive | 40 | dependency: transitive |
| 27 | description: | 41 | description: |
| 28 | - name: charcode | 42 | + name: collection |
| 29 | url: "https://pub.dartlang.org" | 43 | url: "https://pub.dartlang.org" |
| 30 | source: hosted | 44 | source: hosted |
| 31 | - version: "1.1.3" | ||
| 32 | - clock: | 45 | + version: "1.14.12" |
| 46 | + convert: | ||
| 33 | dependency: transitive | 47 | dependency: transitive |
| 34 | description: | 48 | description: |
| 35 | - name: clock | 49 | + name: convert |
| 36 | url: "https://pub.dartlang.org" | 50 | url: "https://pub.dartlang.org" |
| 37 | source: hosted | 51 | source: hosted |
| 38 | - version: "1.0.1" | ||
| 39 | - collection: | 52 | + version: "2.1.1" |
| 53 | + crypto: | ||
| 40 | dependency: transitive | 54 | dependency: transitive |
| 41 | description: | 55 | description: |
| 42 | - name: collection | 56 | + name: crypto |
| 43 | url: "https://pub.dartlang.org" | 57 | url: "https://pub.dartlang.org" |
| 44 | source: hosted | 58 | source: hosted |
| 45 | - version: "1.14.13" | 59 | + version: "2.1.4" |
| 46 | dio: | 60 | dio: |
| 47 | dependency: "direct main" | 61 | dependency: "direct main" |
| 48 | description: | 62 | description: |
| @@ -50,13 +64,6 @@ packages: | @@ -50,13 +64,6 @@ packages: | ||
| 50 | url: "https://pub.dartlang.org" | 64 | url: "https://pub.dartlang.org" |
| 51 | source: hosted | 65 | source: hosted |
| 52 | version: "3.0.9" | 66 | version: "3.0.9" |
| 53 | - fake_async: | ||
| 54 | - dependency: transitive | ||
| 55 | - description: | ||
| 56 | - name: fake_async | ||
| 57 | - url: "https://pub.dartlang.org" | ||
| 58 | - source: hosted | ||
| 59 | - version: "1.1.0" | ||
| 60 | flutter: | 67 | flutter: |
| 61 | dependency: "direct main" | 68 | dependency: "direct main" |
| 62 | description: flutter | 69 | description: flutter |
| @@ -81,13 +88,20 @@ packages: | @@ -81,13 +88,20 @@ packages: | ||
| 81 | url: "https://pub.dartlang.org" | 88 | url: "https://pub.dartlang.org" |
| 82 | source: hosted | 89 | source: hosted |
| 83 | version: "3.1.4" | 90 | version: "3.1.4" |
| 91 | + image: | ||
| 92 | + dependency: transitive | ||
| 93 | + description: | ||
| 94 | + name: image | ||
| 95 | + url: "https://pub.dartlang.org" | ||
| 96 | + source: hosted | ||
| 97 | + version: "2.1.12" | ||
| 84 | matcher: | 98 | matcher: |
| 85 | dependency: transitive | 99 | dependency: transitive |
| 86 | description: | 100 | description: |
| 87 | name: matcher | 101 | name: matcher |
| 88 | url: "https://pub.dartlang.org" | 102 | url: "https://pub.dartlang.org" |
| 89 | source: hosted | 103 | source: hosted |
| 90 | - version: "0.12.8" | 104 | + version: "0.12.6" |
| 91 | meta: | 105 | meta: |
| 92 | dependency: transitive | 106 | dependency: transitive |
| 93 | description: | 107 | description: |
| @@ -101,7 +115,21 @@ packages: | @@ -101,7 +115,21 @@ packages: | ||
| 101 | name: path | 115 | name: path |
| 102 | url: "https://pub.dartlang.org" | 116 | url: "https://pub.dartlang.org" |
| 103 | source: hosted | 117 | source: hosted |
| 104 | - version: "1.7.0" | 118 | + version: "1.6.4" |
| 119 | + petitparser: | ||
| 120 | + dependency: transitive | ||
| 121 | + description: | ||
| 122 | + name: petitparser | ||
| 123 | + url: "https://pub.dartlang.org" | ||
| 124 | + source: hosted | ||
| 125 | + version: "2.4.0" | ||
| 126 | + quiver: | ||
| 127 | + dependency: transitive | ||
| 128 | + description: | ||
| 129 | + name: quiver | ||
| 130 | + url: "https://pub.dartlang.org" | ||
| 131 | + source: hosted | ||
| 132 | + version: "2.1.3" | ||
| 105 | sky_engine: | 133 | sky_engine: |
| 106 | dependency: transitive | 134 | dependency: transitive |
| 107 | description: flutter | 135 | description: flutter |
| @@ -120,7 +148,7 @@ packages: | @@ -120,7 +148,7 @@ packages: | ||
| 120 | name: stack_trace | 148 | name: stack_trace |
| 121 | url: "https://pub.dartlang.org" | 149 | url: "https://pub.dartlang.org" |
| 122 | source: hosted | 150 | source: hosted |
| 123 | - version: "1.9.5" | 151 | + version: "1.9.3" |
| 124 | stream_channel: | 152 | stream_channel: |
| 125 | dependency: transitive | 153 | dependency: transitive |
| 126 | description: | 154 | description: |
| @@ -148,14 +176,14 @@ packages: | @@ -148,14 +176,14 @@ packages: | ||
| 148 | name: test_api | 176 | name: test_api |
| 149 | url: "https://pub.dartlang.org" | 177 | url: "https://pub.dartlang.org" |
| 150 | source: hosted | 178 | source: hosted |
| 151 | - version: "0.2.17" | 179 | + version: "0.2.15" |
| 152 | typed_data: | 180 | typed_data: |
| 153 | dependency: transitive | 181 | dependency: transitive |
| 154 | description: | 182 | description: |
| 155 | name: typed_data | 183 | name: typed_data |
| 156 | url: "https://pub.dartlang.org" | 184 | url: "https://pub.dartlang.org" |
| 157 | source: hosted | 185 | source: hosted |
| 158 | - version: "1.2.0" | 186 | + version: "1.1.6" |
| 159 | vector_math: | 187 | vector_math: |
| 160 | dependency: transitive | 188 | dependency: transitive |
| 161 | description: | 189 | description: |
| @@ -163,5 +191,12 @@ packages: | @@ -163,5 +191,12 @@ packages: | ||
| 163 | url: "https://pub.dartlang.org" | 191 | url: "https://pub.dartlang.org" |
| 164 | source: hosted | 192 | source: hosted |
| 165 | version: "2.0.8" | 193 | version: "2.0.8" |
| 194 | + xml: | ||
| 195 | + dependency: transitive | ||
| 196 | + description: | ||
| 197 | + name: xml | ||
| 198 | + url: "https://pub.dartlang.org" | ||
| 199 | + source: hosted | ||
| 200 | + version: "3.6.1" | ||
| 166 | sdks: | 201 | sdks: |
| 167 | - dart: ">=2.9.0-14.0.dev <3.0.0" | 202 | + dart: ">=2.7.0 <3.0.0" |
lib/src/extensions/double_extensions.dart
0 → 100644
lib/src/extensions/dynamic_extensions.dart
0 → 100644
| 1 | +import '../../utils.dart'; | ||
| 2 | + | ||
| 3 | +extension GetDynamicUtils on dynamic { | ||
| 4 | + bool get isNull => GetUtils.isNull(this); | ||
| 5 | + bool get isNullOrBlank => GetUtils.isNullOrBlank(this); | ||
| 6 | + bool get isOneAKind => GetUtils.isOneAKind(this); | ||
| 7 | + bool isLengthLowerThan(int maxLength) => | ||
| 8 | + GetUtils.isLengthLowerThan(this, maxLength); | ||
| 9 | + bool isLengthGreaterThan(int maxLength) => | ||
| 10 | + GetUtils.isLengthGreaterThan(this, maxLength); | ||
| 11 | + bool isLengthGreaterOrEqual(int maxLength) => | ||
| 12 | + GetUtils.isLengthGreaterOrEqual(this, maxLength); | ||
| 13 | + bool isLengthLowerOrEqual(int maxLength) => | ||
| 14 | + GetUtils.isLengthLowerOrEqual(this, maxLength); | ||
| 15 | + bool isLengthEqualTo(int maxLength) => | ||
| 16 | + GetUtils.isLengthEqualTo(this, maxLength); | ||
| 17 | + bool isLengthBetween(int minLength, int maxLength) => | ||
| 18 | + GetUtils.isLengthBetween(this, minLength, maxLength); | ||
| 19 | +} |
lib/src/extensions/export.dart
0 → 100644
lib/src/extensions/num_extensions.dart
0 → 100644
| 1 | -import 'get_utils.dart'; | 1 | +import '../../utils.dart'; |
| 2 | 2 | ||
| 3 | extension GetStringUtils on String { | 3 | extension GetStringUtils on String { |
| 4 | bool get isNum => GetUtils.isNum(this); | 4 | bool get isNum => GetUtils.isNum(this); |
| @@ -45,27 +45,3 @@ extension GetStringUtils on String { | @@ -45,27 +45,3 @@ extension GetStringUtils on String { | ||
| 45 | String numericOnly(String s, {bool firstWordOnly = false}) => | 45 | String numericOnly(String s, {bool firstWordOnly = false}) => |
| 46 | GetUtils.numericOnly(this, firstWordOnly: firstWordOnly); | 46 | GetUtils.numericOnly(this, firstWordOnly: firstWordOnly); |
| 47 | } | 47 | } |
| 48 | - | ||
| 49 | -extension GetNumUtils on num { | ||
| 50 | - bool isLowerThan(num b) => GetUtils.isLowerThan(this, b); | ||
| 51 | - bool isGreaterThan(num b) => GetUtils.isGreaterThan(this, b); | ||
| 52 | - bool isEqual(num b) => GetUtils.isEqual(this, b); | ||
| 53 | -} | ||
| 54 | - | ||
| 55 | -extension GetDynamicUtils on dynamic { | ||
| 56 | - bool get isNull => GetUtils.isNull(this); | ||
| 57 | - bool get isNullOrBlank => GetUtils.isNullOrBlank(this); | ||
| 58 | - bool get isOneAKind => GetUtils.isOneAKind(this); | ||
| 59 | - bool isLengthLowerThan(int maxLength) => | ||
| 60 | - GetUtils.isLengthLowerThan(this, maxLength); | ||
| 61 | - bool isLengthGreaterThan(int maxLength) => | ||
| 62 | - GetUtils.isLengthGreaterThan(this, maxLength); | ||
| 63 | - bool isLengthGreaterOrEqual(int maxLength) => | ||
| 64 | - GetUtils.isLengthGreaterOrEqual(this, maxLength); | ||
| 65 | - bool isLengthLowerOrEqual(int maxLength) => | ||
| 66 | - GetUtils.isLengthLowerOrEqual(this, maxLength); | ||
| 67 | - bool isLengthEqualTo(int maxLength) => | ||
| 68 | - GetUtils.isLengthEqualTo(this, maxLength); | ||
| 69 | - bool isLengthBetween(int minLength, int maxLength) => | ||
| 70 | - GetUtils.isLengthBetween(this, minLength, maxLength); | ||
| 71 | -} |
lib/src/extensions/widget_extensions.dart
0 → 100644
| 1 | +import 'package:flutter/widgets.dart'; | ||
| 2 | + | ||
| 3 | +extension WidgetPaddingX on Widget { | ||
| 4 | + Widget paddingAll(double padding) => | ||
| 5 | + Padding(padding: EdgeInsets.all(padding), child: this); | ||
| 6 | + | ||
| 7 | + Widget paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) => | ||
| 8 | + Padding( | ||
| 9 | + padding: | ||
| 10 | + EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical), | ||
| 11 | + child: this); | ||
| 12 | + | ||
| 13 | + Widget paddingOnly({ | ||
| 14 | + double left = 0.0, | ||
| 15 | + double top = 0.0, | ||
| 16 | + double right = 0.0, | ||
| 17 | + double bottom = 0.0, | ||
| 18 | + }) => | ||
| 19 | + Padding( | ||
| 20 | + padding: EdgeInsets.only( | ||
| 21 | + top: top, left: left, right: right, bottom: bottom), | ||
| 22 | + child: this); | ||
| 23 | + | ||
| 24 | + Widget get paddingZero => Padding(padding: EdgeInsets.zero, child: this); | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +extension WidgetMarginX on Widget { | ||
| 28 | + Widget marginAll(double margin) => | ||
| 29 | + Container(margin: EdgeInsets.all(margin), child: this); | ||
| 30 | + | ||
| 31 | + Widget marginSymmetric({double horizontal = 0.0, double vertical = 0.0}) => | ||
| 32 | + Container( | ||
| 33 | + margin: | ||
| 34 | + EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical), | ||
| 35 | + child: this); | ||
| 36 | + | ||
| 37 | + Widget marginOnly({ | ||
| 38 | + double left = 0.0, | ||
| 39 | + double top = 0.0, | ||
| 40 | + double right = 0.0, | ||
| 41 | + double bottom = 0.0, | ||
| 42 | + }) => | ||
| 43 | + Container( | ||
| 44 | + margin: EdgeInsets.only( | ||
| 45 | + top: top, left: left, right: right, bottom: bottom), | ||
| 46 | + child: this); | ||
| 47 | + | ||
| 48 | + Widget get marginZero => Container(margin: EdgeInsets.zero, child: this); | ||
| 49 | +} |
| @@ -27,7 +27,7 @@ class GetUtils { | @@ -27,7 +27,7 @@ class GetUtils { | ||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | /// Checks if string consist only numeric. | 29 | /// Checks if string consist only numeric. |
| 30 | - /// Numeric only doesnt accepting "." which double data type have | 30 | + /// Numeric only doesn't accepting "." which double data type have |
| 31 | static bool isNumericOnly(String s) => | 31 | static bool isNumericOnly(String s) => |
| 32 | RegexValidation.hasMatch(s, regex.numericOnly); | 32 | RegexValidation.hasMatch(s, regex.numericOnly); |
| 33 | 33 |
| 1 | -export 'src/context_extensions/extensions.dart'; | ||
| 2 | export 'src/queue/get_queue.dart'; | 1 | export 'src/queue/get_queue.dart'; |
| 3 | export 'src/platform/platform.dart'; | 2 | export 'src/platform/platform.dart'; |
| 4 | export 'src/regex/get_utils.dart'; | 3 | export 'src/regex/get_utils.dart'; |
| 5 | -export 'src/regex/get_utils_extensions.dart'; | 4 | +export 'src/extensions/export.dart'; |
| 1 | # Generated by pub | 1 | # Generated by pub |
| 2 | # See https://dart.dev/tools/pub/glossary#lockfile | 2 | # See https://dart.dev/tools/pub/glossary#lockfile |
| 3 | packages: | 3 | packages: |
| 4 | + archive: | ||
| 5 | + dependency: transitive | ||
| 6 | + description: | ||
| 7 | + name: archive | ||
| 8 | + url: "https://pub.dartlang.org" | ||
| 9 | + source: hosted | ||
| 10 | + version: "2.0.13" | ||
| 11 | + args: | ||
| 12 | + dependency: transitive | ||
| 13 | + description: | ||
| 14 | + name: args | ||
| 15 | + url: "https://pub.dartlang.org" | ||
| 16 | + source: hosted | ||
| 17 | + version: "1.6.0" | ||
| 4 | async: | 18 | async: |
| 5 | dependency: transitive | 19 | dependency: transitive |
| 6 | description: | 20 | description: |
| 7 | name: async | 21 | name: async |
| 8 | url: "https://pub.dartlang.org" | 22 | url: "https://pub.dartlang.org" |
| 9 | source: hosted | 23 | source: hosted |
| 10 | - version: "2.4.2" | 24 | + version: "2.4.1" |
| 11 | boolean_selector: | 25 | boolean_selector: |
| 12 | dependency: transitive | 26 | dependency: transitive |
| 13 | description: | 27 | description: |
| @@ -15,13 +29,6 @@ packages: | @@ -15,13 +29,6 @@ packages: | ||
| 15 | url: "https://pub.dartlang.org" | 29 | url: "https://pub.dartlang.org" |
| 16 | source: hosted | 30 | source: hosted |
| 17 | version: "2.0.0" | 31 | version: "2.0.0" |
| 18 | - characters: | ||
| 19 | - dependency: transitive | ||
| 20 | - description: | ||
| 21 | - name: characters | ||
| 22 | - url: "https://pub.dartlang.org" | ||
| 23 | - source: hosted | ||
| 24 | - version: "1.0.0" | ||
| 25 | charcode: | 32 | charcode: |
| 26 | dependency: transitive | 33 | dependency: transitive |
| 27 | description: | 34 | description: |
| @@ -29,27 +36,27 @@ packages: | @@ -29,27 +36,27 @@ packages: | ||
| 29 | url: "https://pub.dartlang.org" | 36 | url: "https://pub.dartlang.org" |
| 30 | source: hosted | 37 | source: hosted |
| 31 | version: "1.1.3" | 38 | version: "1.1.3" |
| 32 | - clock: | 39 | + collection: |
| 33 | dependency: transitive | 40 | dependency: transitive |
| 34 | description: | 41 | description: |
| 35 | - name: clock | 42 | + name: collection |
| 36 | url: "https://pub.dartlang.org" | 43 | url: "https://pub.dartlang.org" |
| 37 | source: hosted | 44 | source: hosted |
| 38 | - version: "1.0.1" | ||
| 39 | - collection: | 45 | + version: "1.14.12" |
| 46 | + convert: | ||
| 40 | dependency: transitive | 47 | dependency: transitive |
| 41 | description: | 48 | description: |
| 42 | - name: collection | 49 | + name: convert |
| 43 | url: "https://pub.dartlang.org" | 50 | url: "https://pub.dartlang.org" |
| 44 | source: hosted | 51 | source: hosted |
| 45 | - version: "1.14.13" | ||
| 46 | - fake_async: | 52 | + version: "2.1.1" |
| 53 | + crypto: | ||
| 47 | dependency: transitive | 54 | dependency: transitive |
| 48 | description: | 55 | description: |
| 49 | - name: fake_async | 56 | + name: crypto |
| 50 | url: "https://pub.dartlang.org" | 57 | url: "https://pub.dartlang.org" |
| 51 | source: hosted | 58 | source: hosted |
| 52 | - version: "1.1.0" | 59 | + version: "2.1.4" |
| 53 | flutter: | 60 | flutter: |
| 54 | dependency: "direct main" | 61 | dependency: "direct main" |
| 55 | description: flutter | 62 | description: flutter |
| @@ -60,13 +67,20 @@ packages: | @@ -60,13 +67,20 @@ packages: | ||
| 60 | description: flutter | 67 | description: flutter |
| 61 | source: sdk | 68 | source: sdk |
| 62 | version: "0.0.0" | 69 | version: "0.0.0" |
| 70 | + image: | ||
| 71 | + dependency: transitive | ||
| 72 | + description: | ||
| 73 | + name: image | ||
| 74 | + url: "https://pub.dartlang.org" | ||
| 75 | + source: hosted | ||
| 76 | + version: "2.1.12" | ||
| 63 | matcher: | 77 | matcher: |
| 64 | dependency: transitive | 78 | dependency: transitive |
| 65 | description: | 79 | description: |
| 66 | name: matcher | 80 | name: matcher |
| 67 | url: "https://pub.dartlang.org" | 81 | url: "https://pub.dartlang.org" |
| 68 | source: hosted | 82 | source: hosted |
| 69 | - version: "0.12.8" | 83 | + version: "0.12.6" |
| 70 | meta: | 84 | meta: |
| 71 | dependency: transitive | 85 | dependency: transitive |
| 72 | description: | 86 | description: |
| @@ -80,7 +94,21 @@ packages: | @@ -80,7 +94,21 @@ packages: | ||
| 80 | name: path | 94 | name: path |
| 81 | url: "https://pub.dartlang.org" | 95 | url: "https://pub.dartlang.org" |
| 82 | source: hosted | 96 | source: hosted |
| 83 | - version: "1.7.0" | 97 | + version: "1.6.4" |
| 98 | + petitparser: | ||
| 99 | + dependency: transitive | ||
| 100 | + description: | ||
| 101 | + name: petitparser | ||
| 102 | + url: "https://pub.dartlang.org" | ||
| 103 | + source: hosted | ||
| 104 | + version: "2.4.0" | ||
| 105 | + quiver: | ||
| 106 | + dependency: transitive | ||
| 107 | + description: | ||
| 108 | + name: quiver | ||
| 109 | + url: "https://pub.dartlang.org" | ||
| 110 | + source: hosted | ||
| 111 | + version: "2.1.3" | ||
| 84 | sky_engine: | 112 | sky_engine: |
| 85 | dependency: transitive | 113 | dependency: transitive |
| 86 | description: flutter | 114 | description: flutter |
| @@ -99,7 +127,7 @@ packages: | @@ -99,7 +127,7 @@ packages: | ||
| 99 | name: stack_trace | 127 | name: stack_trace |
| 100 | url: "https://pub.dartlang.org" | 128 | url: "https://pub.dartlang.org" |
| 101 | source: hosted | 129 | source: hosted |
| 102 | - version: "1.9.5" | 130 | + version: "1.9.3" |
| 103 | stream_channel: | 131 | stream_channel: |
| 104 | dependency: transitive | 132 | dependency: transitive |
| 105 | description: | 133 | description: |
| @@ -127,14 +155,14 @@ packages: | @@ -127,14 +155,14 @@ packages: | ||
| 127 | name: test_api | 155 | name: test_api |
| 128 | url: "https://pub.dartlang.org" | 156 | url: "https://pub.dartlang.org" |
| 129 | source: hosted | 157 | source: hosted |
| 130 | - version: "0.2.17" | 158 | + version: "0.2.15" |
| 131 | typed_data: | 159 | typed_data: |
| 132 | dependency: transitive | 160 | dependency: transitive |
| 133 | description: | 161 | description: |
| 134 | name: typed_data | 162 | name: typed_data |
| 135 | url: "https://pub.dartlang.org" | 163 | url: "https://pub.dartlang.org" |
| 136 | source: hosted | 164 | source: hosted |
| 137 | - version: "1.2.0" | 165 | + version: "1.1.6" |
| 138 | vector_math: | 166 | vector_math: |
| 139 | dependency: transitive | 167 | dependency: transitive |
| 140 | description: | 168 | description: |
| @@ -142,5 +170,12 @@ packages: | @@ -142,5 +170,12 @@ packages: | ||
| 142 | url: "https://pub.dartlang.org" | 170 | url: "https://pub.dartlang.org" |
| 143 | source: hosted | 171 | source: hosted |
| 144 | version: "2.0.8" | 172 | version: "2.0.8" |
| 173 | + xml: | ||
| 174 | + dependency: transitive | ||
| 175 | + description: | ||
| 176 | + name: xml | ||
| 177 | + url: "https://pub.dartlang.org" | ||
| 178 | + source: hosted | ||
| 179 | + version: "3.6.1" | ||
| 145 | sdks: | 180 | sdks: |
| 146 | - dart: ">=2.9.0-14.0.dev <3.0.0" | 181 | + dart: ">=2.6.0 <3.0.0" |
-
Please register or login to post a comment