mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
NoteTile: Implement Inkwell
It needs to be inside the Material to work.
This commit is contained in:
@ -69,24 +69,14 @@ class NoteTile extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const borderRadius = BorderRadius.all(Radius.circular(8));
|
const borderRadius = BorderRadius.all(Radius.circular(8));
|
||||||
var tile = Material(
|
return Material(
|
||||||
borderRadius: borderRadius,
|
borderRadius: borderRadius,
|
||||||
type: MaterialType.card,
|
type: MaterialType.card,
|
||||||
child: tileContent,
|
child: InkWell(
|
||||||
);
|
child: tileContent,
|
||||||
|
borderRadius: borderRadius,
|
||||||
/*var tile = Container(
|
onTap: () => noteSelectedFunction(note),
|
||||||
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),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user