feat: Refactor NoteEditorScreen layout for improved text field handling and UI consistency

This commit is contained in:
2026-05-19 18:48:03 +02:00
parent 59a5229e46
commit 72afa7b5fe
+25 -23
View File
@@ -258,30 +258,32 @@ class _NoteEditorScreenState extends State<NoteEditorScreen> {
),
),
Expanded(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextField(
controller: _titleController,
style: const TextStyle(
color: Colors.white,
fontSize: 28,
fontWeight: FontWeight.bold,
),
decoration: const InputDecoration(
hintText: 'Título',
hintStyle: TextStyle(color: Colors.white30),
border: InputBorder.none,
contentPadding: EdgeInsets.zero,
),
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextField(
controller: _titleController,
style: const TextStyle(
color: Colors.white,
fontSize: 28,
fontWeight: FontWeight.bold,
),
const SizedBox(height: 16),
TextField(
decoration: const InputDecoration(
hintText: 'Título',
hintStyle: TextStyle(color: Colors.white30),
border: InputBorder.none,
contentPadding: EdgeInsets.zero,
),
),
const SizedBox(height: 16),
Expanded(
child: TextField(
controller: _bodyController,
keyboardType: TextInputType.multiline,
maxLines: null,
expands: true,
style: const TextStyle(
color: Colors.white,
fontSize: 16,
@@ -294,8 +296,8 @@ class _NoteEditorScreenState extends State<NoteEditorScreen> {
contentPadding: EdgeInsets.zero,
),
),
],
),
),
],
),
),
),