Files
CompanyProject/moehu/moehu_fontend/lib/widget/WaterfallFlow/TileWidget.dart
2024-09-27 01:32:49 +08:00

25 lines
608 B
Dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class TileWidget extends StatelessWidget {
const TileWidget(
{Key key, @required this.index, this.backgroundColor: Colors.green})
: super(key: key);
final int index;
final Color backgroundColor;
@override
Widget build(BuildContext context) {
return new Container(
color: this.backgroundColor,
child: new Center(
child: new CircleAvatar(
backgroundColor: Colors.white,
child: new Text('$index+1'),
)),
);
}
}