You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
Dart
43 lines
1.0 KiB
Dart
|
5 years ago
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class LakumPointTableRowWidget extends StatefulWidget {
|
||
|
|
final bool isTableTitle; // true : title , false: row
|
||
|
|
final String tableType; // month, day
|
||
|
|
final double points;
|
||
|
|
final double riyal;
|
||
|
|
final Function onTap;
|
||
|
|
final int rowIndex;
|
||
|
|
|
||
|
|
LakumPointTableRowWidget(
|
||
|
|
this.isTableTitle, this.tableType, this.points, this.riyal, this.onTap, this.rowIndex);
|
||
|
|
|
||
|
|
@override
|
||
|
|
_LakumPointTableRowWidgetState createState() =>
|
||
|
|
_LakumPointTableRowWidgetState();
|
||
|
|
}
|
||
|
|
|
||
|
|
class _LakumPointTableRowWidgetState extends State<LakumPointTableRowWidget> {
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
bool isEven = widget.rowIndex % 2 == 0;
|
||
|
|
return Container(
|
||
|
|
child: Column(
|
||
|
|
children: [
|
||
|
|
Row(
|
||
|
|
children: [
|
||
|
|
|
||
|
|
],
|
||
|
|
),
|
||
|
|
const Divider(
|
||
|
|
color: Color(0xFFD6D6D6),
|
||
|
|
height: 1,
|
||
|
|
thickness: 2,
|
||
|
|
indent: 0,
|
||
|
|
endIndent: 0,
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|