Change dialog text
This commit is contained in:
parent
276e57617f
commit
12940beab7
@ -1,6 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:fnotes/theme_bloc.dart';
|
import 'package:fnotes/theme_bloc.dart';
|
||||||
|
import 'package:uuid/uuid.dart';
|
||||||
|
|
||||||
class Notes extends StatefulWidget {
|
class Notes extends StatefulWidget {
|
||||||
const Notes({
|
const Notes({
|
||||||
@ -15,6 +16,8 @@ class _NotesState extends State<Notes> {
|
|||||||
List<String> notes = List.empty(growable: true);
|
List<String> notes = List.empty(growable: true);
|
||||||
final phraseController = TextEditingController();
|
final phraseController = TextEditingController();
|
||||||
|
|
||||||
|
Map<Uuid, String> notesMap = {};
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
@ -85,7 +88,7 @@ class _NotesState extends State<Notes> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: const Text('Enter your list item here:'),
|
title: const Text('New list item'),
|
||||||
content: TextField(
|
content: TextField(
|
||||||
onSubmitted: (val) {
|
onSubmitted: (val) {
|
||||||
Navigator.pop(context, val);
|
Navigator.pop(context, val);
|
||||||
|
Loading…
Reference in New Issue
Block a user