1
0
mirror of https://github.com/git-touch/git-touch synced 2025-03-08 23:38:03 +01:00

34 lines
875 B
Dart
Raw Normal View History

2019-02-04 21:38:29 +08:00
import 'package:flutter/cupertino.dart';
2019-09-04 22:59:33 +08:00
import 'package:primer/primer.dart';
2019-02-04 21:38:29 +08:00
import 'link.dart';
class EntryItem extends StatelessWidget {
final int count;
final String text;
final WidgetBuilder screenBuilder;
final String url;
2019-02-04 21:38:29 +08:00
EntryItem({this.count, this.text, this.screenBuilder, this.url});
2019-02-04 21:38:29 +08:00
@override
Widget build(BuildContext context) {
return Expanded(
child: Link(
child: Container(
2019-08-31 22:17:35 +08:00
padding: EdgeInsets.symmetric(vertical: 12),
2019-02-04 21:38:29 +08:00
child: Column(
children: <Widget>[
2019-09-04 22:59:33 +08:00
Text(count.toString(),
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500)),
Text(text,
style: TextStyle(fontSize: 12, color: PrimerColors.gray600))
2019-02-04 21:38:29 +08:00
],
),
),
screenBuilder: screenBuilder,
url: url,
2019-02-04 21:38:29 +08:00
),
);
}
}