mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
24 lines
443 B
Dart
24 lines
443 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TableCellWidget extends StatelessWidget {
|
|
final String value;
|
|
final Function()? onTap;
|
|
|
|
const TableCellWidget({
|
|
super.key,
|
|
required this.value,
|
|
this.onTap,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GestureDetector(
|
|
onTap: onTap,
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Text(value),
|
|
),
|
|
);
|
|
}
|
|
}
|