From d6b6fde48085626ddd4e46337597eda82ae24195 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:21:10 +0100 Subject: [PATCH] format code --- .../lib/animations/bottom_animation.dart | 8 ++++---- .../simplex_app/lib/views/home/home_view.dart | 4 ++-- packages/simplex_app/lib/widgets/custom_btn.dart | 16 ++++++++-------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/simplex_app/lib/animations/bottom_animation.dart b/packages/simplex_app/lib/animations/bottom_animation.dart index ace0a0ef63..af177f3ac9 100644 --- a/packages/simplex_app/lib/animations/bottom_animation.dart +++ b/packages/simplex_app/lib/animations/bottom_animation.dart @@ -6,7 +6,7 @@ class Animator extends StatefulWidget { final Widget child; final Duration time; - const Animator(this.child, this.time, {Key? key}): super(key: key); + const Animator(this.child, this.time, {Key? key}) : super(key: key); @override _AnimatorState createState() => _AnimatorState(); @@ -21,8 +21,8 @@ class _AnimatorState extends State @override void initState() { super.initState(); - animationController = - AnimationController(duration: const Duration(milliseconds: 290), vsync: this); + animationController = AnimationController( + duration: const Duration(milliseconds: 290), vsync: this); animation = CurvedAnimation(parent: animationController!, curve: Curves.easeInOut); timer = Timer(widget.time, animationController!.forward); @@ -69,7 +69,7 @@ Duration wait() { class WidgetAnimator extends StatelessWidget { final Widget? child; - const WidgetAnimator({this.child, Key? key}): super(key: key); + const WidgetAnimator({this.child, Key? key}) : super(key: key); @override Widget build(BuildContext context) { diff --git a/packages/simplex_app/lib/views/home/home_view.dart b/packages/simplex_app/lib/views/home/home_view.dart index 62035d4035..2cb95dee52 100644 --- a/packages/simplex_app/lib/views/home/home_view.dart +++ b/packages/simplex_app/lib/views/home/home_view.dart @@ -27,8 +27,8 @@ class _HomeViewState extends State with TickerProviderStateMixin { @override void initState() { super.initState(); - animationController = - AnimationController(vsync: this, duration: const Duration(milliseconds: 250)); + animationController = AnimationController( + vsync: this, duration: const Duration(milliseconds: 250)); } @override diff --git a/packages/simplex_app/lib/widgets/custom_btn.dart b/packages/simplex_app/lib/widgets/custom_btn.dart index 34d3c5cc6e..3fd347e9ac 100644 --- a/packages/simplex_app/lib/widgets/custom_btn.dart +++ b/packages/simplex_app/lib/widgets/custom_btn.dart @@ -1,14 +1,14 @@ import 'package:flutter/material.dart'; class CustomButton extends StatelessWidget { - const CustomButton({ - @required this.width, - @required this.height, - @required this.onPressed, - @required this.color, - @required this.child, - Key? key - }): super(key: key); + const CustomButton( + {@required this.width, + @required this.height, + @required this.onPressed, + @required this.color, + @required this.child, + Key? key}) + : super(key: key); final double? width; final double? height; final void Function()? onPressed;