update
This commit is contained in:
parent
7e1ad68433
commit
b5151a053d
9 changed files with 118 additions and 39 deletions
23
lib/widgets/datatable_widget.dart
Normal file
23
lib/widgets/datatable_widget.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
class DataTableWidget extends StatelessWidget {
|
||||
final List<DataColumn> column;
|
||||
final List<DataRow> row;
|
||||
const DataTableWidget({super.key, required this.column, required this.row});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return DataTable(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: Colors.black, width: 1.0),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
color: Color.fromARGB(255, 240, 240, 240),
|
||||
),
|
||||
headingTextStyle: GoogleFonts.outfit(textStyle: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),
|
||||
dataTextStyle: GoogleFonts.outfit(textStyle: const TextStyle(fontSize: 14)),
|
||||
columns: column,
|
||||
rows: row,
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue