Created with <3 with dartpad.dev.
Created
March 2, 2023 21:24
-
-
Save johnpryan/c82ac04adffe0dc03dded7ea23983d45 to your computer and use it in GitHub Desktop.
tangled-gust-5485
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flame/flame.dart'; | |
import 'dart:async'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'My First Flame App', | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('My First Flame App'), | |
), | |
body: FlameSprite( | |
image: 'assets/cat.png', | |
size: Size(100, 100), | |
anchor: Offset(50, 50), | |
backgroundColor: Colors.white, | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, your code not run. It is outdated. could you verify?