Skip to content

Commit

Permalink
Merge pull request #2 from archethic-foundation/1-dart-33-and-flutter…
Browse files Browse the repository at this point in the history
…-319-migration

⬆️ Upgrade flutter, dart and dependencies versions
  • Loading branch information
redDwarf03 authored Mar 13, 2024
2 parents d960629 + 3155437 commit b84c629
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
flutter 3.13.9-stable
flutter 3.19.3-stable
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Changelog
=========
#### Version 0.0.2
* Migrate to Dart 3.3 and Flutter 3.19
* Upgrade dependencies

#### Version 0.0.1
* First version
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ Add `aedappfm.AppLocalizations.delegate` in `localizationsDelegates` property of
### Warning
To avoid key doublons, we recommand to suffix Archethic DApp Framework imports in the DApp project.<br/>
For example: `import 'package:archethic_dapp_framework_flutter/archethic-dapp-framework-flutter.dart as aedappfm;`

### Pre-requisites

- Flutter 3.19+
- Dart 3.3+
3 changes: 0 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ linter:
# producing the lint.
rules:
- always_declare_return_types
- always_require_non_null_named_parameters
- always_use_package_imports
- annotate_overrides
- avoid_bool_literals_in_conditional_expressions
Expand All @@ -55,8 +54,6 @@ linter:
- avoid_relative_lib_imports
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_returning_null
- avoid_returning_null_for_future
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_setters_without_getters
Expand Down
8 changes: 6 additions & 2 deletions lib/src/ui/util/components/gradient_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ class GradientText extends StatelessWidget {
? SelectableText(
text,
style: style,
textScaleFactor: ScaleSize.textScaleFactor(context),
textScaler: TextScaler.linear(
ScaleSize.textScaleFactor(context),
),
)
: Text(
text,
style: style,
textScaleFactor: ScaleSize.textScaleFactor(context),
textScaler: TextScaler.linear(
ScaleSize.textScaleFactor(context),
),
),
);
}
Expand Down
Loading

0 comments on commit b84c629

Please sign in to comment.