feat: add main.dart
This commit is contained in:
26
lib/main.dart
Normal file
26
lib/main.dart
Normal 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"),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user