2019-02-04 14:38:29 +01:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'link.dart';
|
|
|
|
|
|
|
|
class EntryItem extends StatelessWidget {
|
|
|
|
final int count;
|
|
|
|
final String text;
|
2019-02-07 12:17:29 +01:00
|
|
|
final WidgetBuilder screenBuilder;
|
2019-02-10 07:26:51 +01:00
|
|
|
final String url;
|
2019-02-04 14:38:29 +01:00
|
|
|
|
2019-02-10 07:26:51 +01:00
|
|
|
EntryItem({this.count, this.text, this.screenBuilder, this.url});
|
2019-02-04 14:38:29 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: Link(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 10),
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
2019-02-10 07:26:51 +01:00
|
|
|
Text(count == null ? '' : count.toString(),
|
|
|
|
style: TextStyle(fontSize: 18)),
|
2019-02-04 14:38:29 +01:00
|
|
|
Text(text, style: TextStyle(fontSize: 13))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2019-02-07 12:17:29 +01:00
|
|
|
screenBuilder: screenBuilder,
|
2019-02-10 07:26:51 +01:00
|
|
|
url: url,
|
2019-02-04 14:38:29 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|