first commit
This commit is contained in:
24
moehu/moehu_fontend/lib/widget/WaterfallFlow/TileWidget.dart
Normal file
24
moehu/moehu_fontend/lib/widget/WaterfallFlow/TileWidget.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
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'),
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user