From 4bb13ede724118a284a61339dfffba12dc89ff14 Mon Sep 17 00:00:00 2001 From: Renan Araujo Date: Mon, 3 Jul 2023 00:03:14 +0100 Subject: [PATCH] format --- lib/lobby/view/lobby_page.dart | 7 ++++--- lib/shaders/crt.dart | 11 ++++++----- pubspec.lock | 2 +- pubspec.yaml | 1 + 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/lobby/view/lobby_page.dart b/lib/lobby/view/lobby_page.dart index 6c77431..98b4532 100644 --- a/lib/lobby/view/lobby_page.dart +++ b/lib/lobby/view/lobby_page.dart @@ -60,9 +60,10 @@ class _LobbyPageState extends State { @override Widget build(BuildContext context) { const centerTextStyle = TextStyle( - color: GamePalette.lightBlue, - fontSize: 48.0, - fontWeight: FontWeight.bold); + color: GamePalette.lightBlue, + fontSize: 48.0, + fontWeight: FontWeight.bold, + ); return RawKeyboardListener( focusNode: _focusNode, diff --git a/lib/shaders/crt.dart b/lib/shaders/crt.dart index 8693289..399d6ae 100644 --- a/lib/shaders/crt.dart +++ b/lib/shaders/crt.dart @@ -1,15 +1,14 @@ import 'dart:ui' as ui; -import 'package:vector_math/vector_math.dart' hide Colors; - import 'package:flutter/material.dart'; import 'package:flutter_shaders/flutter_shaders.dart'; +import 'package:vector_math/vector_math.dart' hide Colors; class CRTShader extends StatelessWidget { const CRTShader({ - super.key, required this.enabled, required this.child, + super.key, }); final bool enabled; @@ -17,7 +16,9 @@ class CRTShader extends StatelessWidget { @override Widget build(BuildContext context) { - if (!enabled) return child; + if (!enabled) { + return child; + } return ColoredBox( color: Colors.black, @@ -58,8 +59,8 @@ class CRTShader extends StatelessWidget { class ImageBuilder extends StatefulWidget { const ImageBuilder( this.builder, { - super.key, required this.assetImageProvider, + super.key, }); final Widget Function(BuildContext context, ui.Image image) builder; diff --git a/pubspec.lock b/pubspec.lock index 8352964..0d195d4 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -661,7 +661,7 @@ packages: source: hosted version: "3.0.7" vector_math: - dependency: transitive + dependency: "direct main" description: name: vector_math sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" diff --git a/pubspec.yaml b/pubspec.yaml index d623a69..c4d3014 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,6 +17,7 @@ dependencies: gamepads: ^0.1.1 google_fonts: ^4.0.4 phased: ^0.0.3 + vector_math: ^2.1.4 dev_dependencies: flame_lint: ^1.0.0