1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-17 18:59:23 +01:00
git-touch-android-ios-app/lib/widgets/entry_item.dart

44 lines
1.1 KiB
Dart
Raw Normal View History

2019-02-04 14:38:29 +01:00
import 'package:flutter/cupertino.dart';
import 'package:git_touch/utils/utils.dart';
import 'package:intl/intl.dart';
2019-09-04 16:59:33 +02:00
import 'package:primer/primer.dart';
2019-02-04 14:38:29 +01:00
import 'link.dart';
class EntryItem extends StatelessWidget {
final int count;
final String text;
final WidgetBuilder screenBuilder;
final String url;
2019-02-04 14:38:29 +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(
child: Link(
child: Container(
2019-09-13 09:55:58 +02:00
padding: EdgeInsets.symmetric(vertical: 14),
2019-02-04 14:38:29 +01:00
child: Column(
children: <Widget>[
2019-09-13 09:55:58 +02:00
Text(
numberFormat.format(count),
2019-09-13 09:55:58 +02:00
style: TextStyle(fontSize: 17, fontWeight: FontWeight.w600),
),
Text(
text,
style: TextStyle(
fontSize: 12,
color: PrimerColors.gray700,
fontWeight: FontWeight.w500,
),
)
2019-02-04 14:38:29 +01:00
],
),
),
screenBuilder: screenBuilder,
url: url,
2019-02-04 14:38:29 +01:00
),
);
}
}