Skip to content

Instantly share code, notes, and snippets.

@johnpryan
Created March 2, 2023 21:24
Show Gist options
  • Save johnpryan/c82ac04adffe0dc03dded7ea23983d45 to your computer and use it in GitHub Desktop.
Save johnpryan/c82ac04adffe0dc03dded7ea23983d45 to your computer and use it in GitHub Desktop.
tangled-gust-5485
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,
),
),
);
}
}
@rinaldiluciene
Copy link

Hello, your code not run. It is outdated. could you verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment