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

32 lines
706 B
Dart
Raw Normal View History

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;
final CupertinoPageRoute route;
EntryItem({this.count, this.text, this.route});
@override
Widget build(BuildContext context) {
return Expanded(
flex: 1,
child: Link(
child: Container(
padding: EdgeInsets.symmetric(vertical: 10),
child: Column(
children: <Widget>[
Text(count.toString()),
Text(text, style: TextStyle(fontSize: 13))
],
),
),
onTap: () {
Navigator.of(context).push(route);
},
),
);
}
}