fix: event item tapable revert
This commit is contained in:
parent
d25b979138
commit
5b4ff92138
|
@ -126,16 +126,16 @@ TextSpan createLinkSpan(BuildContext context, String text, Function handle) {
|
|||
fontWeight: FontWeight.w600,
|
||||
// decoration: TextDecoration.underline,
|
||||
),
|
||||
// recognizer: TapGestureRecognizer()
|
||||
// ..onTap = () {
|
||||
// Navigator.of(context).push(
|
||||
// CupertinoPageRoute(
|
||||
// builder: (context) {
|
||||
// return handle();
|
||||
// },
|
||||
// ),
|
||||
// );
|
||||
// },
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
Navigator.of(context).push(
|
||||
CupertinoPageRoute(
|
||||
builder: (context) {
|
||||
return handle();
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -66,9 +66,7 @@ class EventItem extends StatelessWidget {
|
|||
];
|
||||
_spans.addAll(spans);
|
||||
|
||||
return Link(
|
||||
screenBuilder: screenBuilder,
|
||||
child: Container(
|
||||
return Container(
|
||||
padding: EdgeInsets.all(8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
@ -108,7 +106,6 @@ class EventItem extends StatelessWidget {
|
|||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue