Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Add flame and flame_lint packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ufrshubham committed Dec 9, 2023
1 parent cf91ca4 commit 5a11102
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 25 deletions.
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:flutter_lints/flutter.yaml
include: package:flame_lint/analysis_options.yaml
3 changes: 3 additions & 0 deletions lib/game/game.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import 'package:flame/game.dart';

class HoldLabsGame extends FlameGame {}
12 changes: 7 additions & 5 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
import 'package:hold_labs/game/game.dart';

void main() {
runApp(const MainApp());
runApp(const HoldLabsApp());
}

class MainApp extends StatelessWidget {
const MainApp({super.key});
class HoldLabsApp extends StatelessWidget {
const HoldLabsApp({super.key});

@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: Text('Hello World!'),
body: GameWidget.controlled(
gameFactory: HoldLabsGame.new,
),
),
);
Expand Down
41 changes: 25 additions & 16 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,32 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.1"
flutter:
flame:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_lints:
description:
name: flame
sha256: "8703abbdb3aec264f91823f8af3de4f1a14656326aff0f344d90484be97ee8e7"
url: "https://pub.dev"
source: hosted
version: "1.12.0"
flame_lint:
dependency: "direct dev"
description:
name: flutter_lints
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
name: flame_lint
sha256: "7dad67385e72cc8441cf39d2dfe16d69cc1687f56d91d5b27d7734f410d4edab"
url: "https://pub.dev"
source: hosted
version: "3.0.1"
version: "1.1.2"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
lints:
dependency: transitive
description:
name: lints
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
version: "3.0.0"
matcher:
dependency: transitive
description:
Expand All @@ -99,6 +99,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.10.0"
ordered_set:
dependency: transitive
description:
name: ordered_set
sha256: "3858c7d84619edfab87c3e367584648020903187edb70b52697646f4b2a93022"
url: "https://pub.dev"
source: hosted
version: "5.0.2"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -178,3 +186,4 @@ packages:
version: "0.3.0"
sdks:
dart: ">=3.2.3 <4.0.0"
flutter: ">=3.13.0"
7 changes: 4 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: hold_labs
description: "A game about temprature science"
publish_to: 'none'
publish_to: "none"
version: 0.1.0

environment:
sdk: '>=3.2.3 <4.0.0'
sdk: ">=3.2.3 <4.0.0"

dependencies:
flame: 1.12.0
flutter:
sdk: flutter

dev_dependencies:
flame_lint: 1.1.2
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1

flutter:
uses-material-design: true

0 comments on commit 5a11102

Please sign in to comment.