Update: lib/main.dart

This commit is contained in:
Hadi Mottale 2025-07-14 11:14:36 +03:30
parent e0747ee52a
commit 7c0b41c9f7
1 changed files with 8 additions and 19 deletions

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:photo_mosaic_app/home_page.dart';
void main() {
runApp(const MyApp());
@ -10,24 +11,12 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: const MyHomePage(title: 'Flutter Demo Home Page'),
title: 'Photo Mosaic Generator',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const HomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(appBar: AppBar(), body: Center());
}
}
}