Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Jul 2, 2023
1 parent 743650e commit 4bb13ed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions lib/lobby/view/lobby_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ class _LobbyPageState extends State<LobbyPage> {
@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,
Expand Down
11 changes: 6 additions & 5 deletions lib/shaders/crt.dart
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
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;
final Widget child;

@override
Widget build(BuildContext context) {
if (!enabled) return child;
if (!enabled) {
return child;
}

return ColoredBox(
color: Colors.black,
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ packages:
source: hosted
version: "3.0.7"
vector_math:
dependency: transitive
dependency: "direct main"
description:
name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bb13ed

Please sign in to comment.