-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#6178Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.20Found to occur in 3.20Found to occur in 3.20frameworkflutter/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 onp: two_dimensional_scrollablesIssues pertaining to the two_dimensional_scrollables packageIssues pertaining to the two_dimensional_scrollables packager: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Steps to reproduce
- Add two_dimensional_scrollables 0.1.0 package
- Add a TableView.builder() with pinned rows
- Add merged cells within the pinned rows
Can be reproduced in master and stable Flutter (3.16.9)
Expected results
The merged cells should stay visible within the pinned rows while the table is scrolled.
Actual results
The merged cells scroll out of the viewport/disappear if the table is scrolled.
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:two_dimensional_scrollables/two_dimensional_scrollables.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => const MaterialApp(home: MyHomePage());
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
constraints: const BoxConstraints.expand(),
child: TableView.builder(
columnCount: 9,
rowCount: 200,
pinnedRowCount: 2,
columnBuilder: (columnIndex) => const TableSpan(
extent: FixedTableSpanExtent(100),
foregroundDecoration: TableSpanDecoration(
border: TableSpanBorder(
trailing: BorderSide(color: Colors.black)
)
)
),
rowBuilder: (rowIndex) => const TableSpan(
extent: FixedTableSpanExtent(50),
foregroundDecoration: TableSpanDecoration(
border: TableSpanBorder(
trailing: BorderSide(color: Colors.black)
)
)
),
cellBuilder: (context, vicinity) => TableViewCell(
columnMergeStart: vicinity.row == 0 ? vicinity.column - (vicinity.column % 3) : null,
columnMergeSpan: vicinity.row == 0 ? 3 : null,
child: Text('R${vicinity.row}, C${vicinity.row == 0 ? vicinity.column - (vicinity.column % 3) : vicinity.column}'),
)
),
),
);
}
}Screenshots or Video
Logs
Logs
flutter run
Connected devices:
Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3930]
Chrome (web) • chrome • web-javascript • Google Chrome 121.0.6167.161
Edge (web) • edge • web-javascript • Microsoft Edge 121.0.2277.112
[1]: Windows (windows)
[2]: Chrome (chrome)
[3]: Edge (edge)
Please choose one (or "q" to quit): 2
Launching lib\main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome... 13,5s
This app is linked to the debug service: ws://127.0.0.1:61961/ZZSeaYklRlw=/ws
Debug service listening on ws://127.0.0.1:61961/ZZSeaYklRlw=/ws
To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".
A Dart VM Service on Chrome is available at: http://127.0.0.1:61961/ZZSeaYklRlw=
The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:61961/ZZSeaYklRlw=
Flutter Doctor output
Doctor output
[√] Flutter (Channel master, 3.20.0-7.0.pre.62, on Microsoft Windows [Version 10.0.19045.3930], locale de-DE)
• Flutter version 3.20.0-7.0.pre.62 on channel master at C:\Flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d00fe8faae (47 minutes ago), 2024-02-15 15:49:26 +0000
• Engine revision 3af336bfb2
• Dart version 3.4.0 (build 3.4.0-140.0.dev)
• DevTools version 2.33.0-dev.6
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\...\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.8.34330.188
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2023.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
[√] VS Code (version 1.78.2)
• VS Code at C:\Users\...\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.64.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3930]
• Chrome (web) • chrome • web-javascript • Google Chrome 121.0.6167.161
• Edge (web) • edge • web-javascript • Microsoft Edge 121.0.2277.112
[√] Network resources
• All expected network resources are available.
• No issues found!Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.20Found to occur in 3.20Found to occur in 3.20frameworkflutter/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 onp: two_dimensional_scrollablesIssues pertaining to the two_dimensional_scrollables packageIssues pertaining to the two_dimensional_scrollables packager: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team

