Skip to content

Commit

Permalink
🚨 fix lints flutter 3.19
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Mar 13, 2024
1 parent 390e094 commit 22e9ae3
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 146 deletions.
3 changes: 0 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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 @@ -56,8 +55,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
4 changes: 3 additions & 1 deletion lib/ui/views/util/components/gradient_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class GradientText extends StatelessWidget {
child: Text(
text,
style: style,
textScaleFactor: ScaleSize.textScaleFactor(context),
textScaler: TextScaler.linear(
ScaleSize.textScaleFactor(context),
),
),
);
}
Expand Down
4 changes: 3 additions & 1 deletion lib/ui/views/welcome/components/welcome_title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ class WelcomeTitle extends StatelessWidget {
fontSize: 40,
fontWeight: FontWeight.w400,
),
textScaleFactor: ScaleSize.textScaleFactor(context),
textScaler: TextScaler.linear(
ScaleSize.textScaleFactor(context),
),
)
.animate(delay: 200.ms)
.fadeIn(duration: 400.ms, delay: 300.ms)
Expand Down
Loading

0 comments on commit 22e9ae3

Please sign in to comment.