1+ import 'package:flow/pages/notes/select.dart' ;
12import 'package:flutter/material.dart' ;
23import 'package:flutter_bloc/flutter_bloc.dart' ;
34import 'package:flow/src/generated/i18n/app_localizations.dart' ;
@@ -109,7 +110,7 @@ class _NotesViewState<T extends DescriptiveModel> extends State<NotesView<T>> {
109110 ),
110111 ),
111112 onTap: () async {
112- await showDialog <Note >(
113+ await showDialog <SourcedModel < Note > >(
113114 context: context,
114115 builder: (context) => NoteDialog (
115116 source: widget.source,
@@ -132,17 +133,18 @@ class _NotesViewState<T extends DescriptiveModel> extends State<NotesView<T>> {
132133 child: Padding (
133134 padding: const EdgeInsets .all (16.0 ),
134135 child: FloatingActionButton .extended (
135- label: Text (AppLocalizations .of (context).create ),
136- icon: const PhosphorIcon (PhosphorIconsLight .plus ),
136+ label: Text (AppLocalizations .of (context).link ),
137+ icon: const PhosphorIcon (PhosphorIconsLight .link ),
137138 onPressed: () async {
138- final note = await showDialog <Note >(
139+ final note = await showDialog <SourcedModel < Note > >(
139140 context: context,
140- builder: (context) => NoteDialog (
141+ builder: (context) => NoteSelectDialog (
141142 source: widget.source,
142143 ),
143144 );
144145 if (note != null ) {
145- await widget.connector.connect (widget.model.id! , note.id! );
146+ await widget.connector
147+ .connect (widget.model.id! , note.model.id! );
146148 }
147149 _pagingController.refresh ();
148150 },
0 commit comments