-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.27Found to occur in 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28Found to occur in 3.28frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Steps to reproduce
Put code below in dartpad.
In paginated_data_table.dart Line 530 and following -> Shouldn't the colour be set to the IconButton instead of the Icon?
Expected results
If it is not possible to turn back to the first page, the symbol should be lighter than if it is possible to turn back.
Actual results
The icons for paging have no disabled "state"
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(home: MyPaginatedTable()));
}
class MyPaginatedTable extends StatelessWidget {
final List<Map<String, dynamic>> _data = List.generate(
50,
(index) => {"id": index + 1, "name": "Item ${index + 1}"},
);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Pagination Test")),
body: PaginatedDataTable(
header: Text('Test Table'),
rowsPerPage: 10,
// arrowHeadColor: Colors.black, // Setzt die aktive Pfeilfarbe
columns: [
DataColumn(label: Text('ID')),
DataColumn(label: Text('Name')),
],
source: _MyDataSource(_data),
),
);
}
}
class _MyDataSource extends DataTableSource {
final List<Map<String, dynamic>> _data;
_MyDataSource(this._data);
@override
DataRow getRow(int index) {
final item = _data[index];
return DataRow.byIndex(
index: index,
cells: [
DataCell(Text(item['id'].toString())),
DataCell(Text(item['name'])),
],
);
}
@override
int get rowCount => _data.length;
@override
bool get isRowCountApproximate => false;
@override
int get selectedRowCount => 0;
}
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.27Found to occur in 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28Found to occur in 3.28frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
Status
Done (PR merged)