mirror of
https://github.com/cupcakearmy/fight-of-the-mobiles.git
synced 2026-04-02 10:15:23 +00:00
22 lines
528 B
Dart
22 lines
528 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ListItem extends StatelessWidget {
|
|
ListItem({this.left, this.right});
|
|
|
|
final int left;
|
|
final String right;
|
|
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
Container(
|
|
margin: const EdgeInsets.only(right: 4.0),
|
|
child: Text('${left.toString()}.',
|
|
style: TextStyle(fontWeight: FontWeight.bold))),
|
|
Text(right, style: TextStyle())
|
|
],
|
|
);
|
|
}
|
|
}
|