Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Oct 25, 2022
1 parent bdce8aa commit dff4703
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
1 change: 0 additions & 1 deletion all_lint_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ linter:
- always_use_package_imports
- annotate_overrides
- avoid_annotating_with_dynamic
- avoid_as
- avoid_bool_literals_in_conditional_expressions
- avoid_catches_without_on_clauses
- avoid_catching_errors
Expand Down
4 changes: 0 additions & 4 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ linter:
# and `@required Widget child` last.
always_put_required_named_parameters_first: false

# `as` is not that bad (especially with the upcoming non-nullable types).
# Explicit exceptions is better than implicit exceptions.
avoid_as: false

# This project doesn't use Flutter-style todos
flutter_style_todos: false

Expand Down
28 changes: 14 additions & 14 deletions example/lib/discovery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class _MyAppState extends State<MyApp> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('You have clicked the button this many times:'),
Text('$count', style: Theme.of(context).textTheme.headline4),
// Text('$count', style: Theme.of(context).textTheme.headline4),
Text('$count'),
ElevatedButton(
onPressed: () => setState(() => showDiscovery = true),
child: const Text('Show discovery'),
Expand Down Expand Up @@ -103,19 +104,18 @@ class Discovery extends StatelessWidget {
top: 100,
left: 50,
width: 200,
child: DefaultTextStyle(
style: Theme.of(context).textTheme.headline5!,
child: TweenAnimationBuilder<double>(
duration: kThemeAnimationDuration,
curve: Curves.easeOut,
tween: Tween(begin: 0, end: visible ? 1 : 0),
builder: (context, opacity, _) {
return Opacity(
opacity: opacity,
child: description,
);
},
),
// child: DefaultTextStyle(
// style: Theme.of(context).textTheme.headline5!,
child: TweenAnimationBuilder<double>(
duration: kThemeAnimationDuration,
curve: Curves.easeOut,
tween: Tween(begin: 0, end: visible ? 1 : 0),
builder: (context, opacity, _) {
return Opacity(
opacity: opacity,
child: description,
);
},
),
)
],
Expand Down

0 comments on commit dff4703

Please sign in to comment.