Skip to content
Merged
Prev Previous commit
Next Next commit
+++
  • Loading branch information
Piinks committed Mar 25, 2024
commit 02167b435fb920ddf30804b50b1399876a44bcc9
28 changes: 14 additions & 14 deletions packages/two_dimensional_scrollables/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class _TableExampleState extends State<TableExample> {
verticalDetails:
ScrollableDetails.vertical(controller: _verticalController),
cellBuilder: _buildCell,
// columnCount: 20,
columnCount: 20,
columnBuilder: _buildColumnSpan,
// rowCount: _rowCount,
rowCount: _rowCount,
rowBuilder: _buildRowSpan,
),
),
Expand Down Expand Up @@ -108,7 +108,7 @@ class _TableExampleState extends State<TableExample> {
return TableSpan(
foregroundDecoration: decoration,
extent: const FixedTableSpanExtent(100),
onEnter: (_) => print('Entered column $index'),
// onEnter: (_) => print('Entered column $index'),
recognizerFactories: <Type, GestureRecognizerFactory>{
TapGestureRecognizer:
GestureRecognizerFactoryWithHandlers<TapGestureRecognizer>(
Expand All @@ -121,27 +121,27 @@ class _TableExampleState extends State<TableExample> {
case 1:
return TableSpan(
foregroundDecoration: decoration,
extent: const FractionalTableSpanExtent(0.5),
onEnter: (_) => print('Entered column $index'),
extent: const FixedTableSpanExtent(100),
// onEnter: (_) => print('Entered column $index'),
cursor: SystemMouseCursors.contextMenu,
);
case 2:
return TableSpan(
foregroundDecoration: decoration,
extent: const FixedTableSpanExtent(120),
onEnter: (_) => print('Entered column $index'),
extent: const FixedTableSpanExtent(100),
// onEnter: (_) => print('Entered column $index'),
);
case 3:
return TableSpan(
foregroundDecoration: decoration,
extent: const FixedTableSpanExtent(145),
onEnter: (_) => print('Entered column $index'),
extent: const FixedTableSpanExtent(100),
// onEnter: (_) => print('Entered column $index'),
);
case 4:
return TableSpan(
foregroundDecoration: decoration,
extent: const FixedTableSpanExtent(200),
onEnter: (_) => print('Entered column $index'),
extent: const FixedTableSpanExtent(100),
// onEnter: (_) => print('Entered column $index'),
);
}
throw AssertionError(
Expand All @@ -162,7 +162,7 @@ class _TableExampleState extends State<TableExample> {
case 0:
return TableSpan(
backgroundDecoration: decoration,
extent: const FixedTableSpanExtent(50),
extent: const FixedTableSpanExtent(100),
recognizerFactories: <Type, GestureRecognizerFactory>{
TapGestureRecognizer:
GestureRecognizerFactoryWithHandlers<TapGestureRecognizer>(
Expand All @@ -175,13 +175,13 @@ class _TableExampleState extends State<TableExample> {
case 1:
return TableSpan(
backgroundDecoration: decoration,
extent: const FixedTableSpanExtent(65),
extent: const FixedTableSpanExtent(100),
cursor: SystemMouseCursors.click,
);
case 2:
return TableSpan(
backgroundDecoration: decoration,
extent: const FractionalTableSpanExtent(0.15),
extent: const FixedTableSpanExtent(100),
);
}
throw AssertionError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C80D4294CF70F00263BE5 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Loading