mirror of
https://github.com/cupcakearmy/fight-of-the-mobiles.git
synced 2026-04-02 10:15:23 +00:00
code
This commit is contained in:
21
src/flutter/lib/Components/ListItem.dart
Normal file
21
src/flutter/lib/Components/ListItem.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
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())
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user