This commit is contained in:
2026-02-26 20:49:21 -05:00
parent bebcf48a32
commit 4d9e715361
243 changed files with 25648 additions and 14573 deletions
+32
View File
@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
import '../widgets/filter_bar.dart';
import '../widgets/todo_list.dart';
import '../widgets/todo_form.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
final colorScheme = Theme.of(context).colorScheme;
return Scaffold(
appBar: AppBar(
title: const Text('Todos Dart Flutter'),
centerTitle: false,
backgroundColor: colorScheme.primaryContainer,
foregroundColor: colorScheme.onPrimaryContainer,
),
body: const Column(
children: [
FilterBar(),
Expanded(child: TodoList()),
],
),
floatingActionButton: FloatingActionButton(
onPressed: () => showTodoDialog(context, null),
child: const Icon(Icons.add),
),
);
}
}