feat: add main.dart

This commit is contained in:
Grail Finder
2025-04-19 11:48:47 +03:00
committed by Grail Finder (aider)
commit 9327435453

26
lib/main.dart Normal file
View File

@ -0,0 +1,26 @@
import 'package:flutter/material.dart';
void main(){
runApp(TheApp());
}
class TheApp extends StatelessWidget {
const TheApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
// theme: ,
home: Scaffold(
appBar: AppBar(
backgroundColor: Colors.deepPurple,
title: const Text("Tamagochi 2.0"),
titleSpacing: Align(this.title), // I want to center-align title horizontaly; ai!
),
body: Container(
child: const Text("this is a body"),
),
)
);
}
}