Backlinks: Make the entire part tappable

This commit is contained in:
Vishesh Handa
2020-06-10 15:18:38 +02:00
parent c98d01415f
commit 1cebc69759

View File

@ -116,13 +116,13 @@ class NoteSnippet extends StatelessWidget {
return Padding( return Padding(
padding: const EdgeInsets.fromLTRB(0.0, 8.0, 0.0, 8.0), padding: const EdgeInsets.fromLTRB(0.0, 8.0, 0.0, 8.0),
child: Container( child: GestureDetector(
color: theme.scaffoldBackgroundColor, onTap: () {
width: MediaQuery.of(context).size.width, openNoteEditor(context, note);
child: GestureDetector( },
onTap: () { child: Container(
openNoteEditor(context, note); color: theme.scaffoldBackgroundColor,
}, width: MediaQuery.of(context).size.width,
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Text('$title', style: textTheme.bodyText1), Text('$title', style: textTheme.bodyText1),