Files
2026-02-26 20:49:21 -05:00

33 lines
873 B
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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),
),
);
}
}