Change dialog text

This commit is contained in:
Marco 2024-03-17 18:02:00 +01:00
parent 276e57617f
commit 12940beab7

View File

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:fnotes/theme_bloc.dart';
import 'package:uuid/uuid.dart';
class Notes extends StatefulWidget {
const Notes({
@ -15,6 +16,8 @@ class _NotesState extends State<Notes> {
List<String> notes = List.empty(growable: true);
final phraseController = TextEditingController();
Map<Uuid, String> notesMap = {};
@override
Widget build(BuildContext context) {
return Scaffold(
@ -85,7 +88,7 @@ class _NotesState extends State<Notes> {
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Enter your list item here:'),
title: const Text('New list item'),
content: TextField(
onSubmitted: (val) {
Navigator.pop(context, val);