fix: event item tapable revert

This commit is contained in:
Rongjian Zhang 2019-02-12 00:31:06 +08:00
parent d25b979138
commit 5b4ff92138
2 changed files with 46 additions and 49 deletions

View File

@ -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();
},
),
);
},
);
}

View File

@ -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 {
)
],
),
),
);
}