From cfc38b90b9fa4b50687e36fc18856fd6dd75cc69 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 2 Apr 2020 19:15:18 +0200 Subject: [PATCH] NoteTile: Implement Inkwell It needs to be inside the Material to work. --- lib/folder_views/note_tile.dart | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/folder_views/note_tile.dart b/lib/folder_views/note_tile.dart index acacf4e0..6f0c6599 100644 --- a/lib/folder_views/note_tile.dart +++ b/lib/folder_views/note_tile.dart @@ -69,24 +69,14 @@ class NoteTile extends StatelessWidget { ); const borderRadius = BorderRadius.all(Radius.circular(8)); - var tile = Material( + return Material( borderRadius: borderRadius, type: MaterialType.card, - child: tileContent, - ); - - /*var tile = Container( - decoration: BoxDecoration( - border: Border.all(color: Colors.grey[200]), - color: Colors.white, - borderRadius: borderRadius, - child: tileContent, - );*/ - - return InkWell( - child: tile, - borderRadius: borderRadius, - onTap: () => noteSelectedFunction(note), + child: InkWell( + child: tileContent, + borderRadius: borderRadius, + onTap: () => noteSelectedFunction(note), + ), ); } }