You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
paginatedDataTable showing empty rows at the end if rowCount is less than rowsPerPage #80421
[✓] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.870], locale en-US)
• Flutter version 2.0.4 at C:\Users\Taha\Code\flutter_stable
• Framework revision b1395592de (13 days ago), 2021-04-01 14:25:01 -0700
• Engine revision 2dce47073a
• Dart version 2.12.2
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Taha\Code\SDK
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = C:\Users\Taha\Code\SDK
• Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.9.31129.286
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 4.1.0)
• Android Studio at C:\Users\Taha\Code\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 1.8.0_242-release-1644-b01)
[✓] IntelliJ IDEA Community Edition (version 2021.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
• Flutter plugin version 55.0.5
• Dart plugin version 211.6693.108
[✓] VS Code (version 1.55.2)
• VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.21.0
[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.870]
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.68
! Doctor found issues in 1 category.
[✓] Flutter (Channel master, 2.1.0-13.0.pre.608, on Microsoft Windows [Version 10.0.19042.870], locale en-US)
• Flutter version 2.1.0-13.0.pre.608 at C:\Users\Taha\Code\flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f0c9710493 (10 hours ago), 2021-04-13 20:29:40 -0500
• Engine revision 04cd0db032
• Dart version 2.13.0 (build 2.13.0-232.0.dev)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Taha\Code\SDK
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = C:\Users\Taha\Code\SDK
• Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.9.31129.286
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 4.1.0)
• Android Studio at C:\Users\Taha\Code\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 1.8.0_242-release-1644-b01)
[✓] IntelliJ IDEA Community Edition (version 2021.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
• Flutter plugin version 55.0.5
• Dart plugin version 211.6693.108
[✓] VS Code (version 1.55.2)
• VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.21.0
[✓] Connected device (5 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• sdk gphone x86 (mobile) • emulator-5556 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.870]
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.68
! Doctor found issues in 1 category.
If we make PaginatedDataTable.rowsPerPage equal to _rows count. I think issue get's resolved.
Basically if we add PaginatedDataTable.rowsPerPage greater than _rows count it adds extra empty rows.
empty rows added = PaginatedDataTable.rowsPerPage - _rows count .
Please consider if it will be better when last page has less rows than rowsPerPage the table shouldn't add any empty rows or blank space and shows only data?
Please consider if it will be better when last page has less rows than rowsPerPage the table shouldn't add any empty rows or blank space and shows only data?
If we don't add empty space then the table footer will shift up which is not good according to material design
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
TahaTesser commentedon Apr 14, 2021
Hi @s3dibrahim
Thanks for filing the issue!
code sample
flutter doctor -v
[✓] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.870], locale en-US) • Flutter version 2.0.4 at C:\Users\Taha\Code\flutter_stable • Framework revision b1395592de (13 days ago), 2021-04-01 14:25:01 -0700 • Engine revision 2dce47073a • Dart version 2.12.2 [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\Taha\Code\SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = C:\Users\Taha\Code\SDK • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details. [✓] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.3) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.9.31129.286 • Windows 10 SDK version 10.0.19041.0 [✓] Android Studio (version 4.1.0) • Android Studio at C:\Users\Taha\Code\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 1.8.0_242-release-1644-b01) [✓] IntelliJ IDEA Community Edition (version 2021.1) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3 • Flutter plugin version 55.0.5 • Dart plugin version 211.6693.108 [✓] VS Code (version 1.55.2) • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.21.0 [✓] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.870] • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114 • Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.68 ! Doctor found issues in 1 category.[✓] Flutter (Channel master, 2.1.0-13.0.pre.608, on Microsoft Windows [Version 10.0.19042.870], locale en-US) • Flutter version 2.1.0-13.0.pre.608 at C:\Users\Taha\Code\flutter_master • Upstream repository https://github.com/flutter/flutter.git • Framework revision f0c9710493 (10 hours ago), 2021-04-13 20:29:40 -0500 • Engine revision 04cd0db032 • Dart version 2.13.0 (build 2.13.0-232.0.dev) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\Taha\Code\SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = C:\Users\Taha\Code\SDK • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details. [✓] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.3) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.9.31129.286 • Windows 10 SDK version 10.0.19041.0 [✓] Android Studio (version 4.1.0) • Android Studio at C:\Users\Taha\Code\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 1.8.0_242-release-1644-b01) [✓] IntelliJ IDEA Community Edition (version 2021.1) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3 • Flutter plugin version 55.0.5 • Dart plugin version 211.6693.108 [✓] VS Code (version 1.55.2) • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.21.0 [✓] Connected device (5 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator) • sdk gphone x86 (mobile) • emulator-5556 • android-x86 • Android 11 (API 30) (emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.870] • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114 • Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.68 ! Doctor found issues in 1 category.awasum commentedon Nov 4, 2021
I am also facing this problem. Has anyone found a solution to this?
raphael-bmec-co commentedon Feb 14, 2022
Still seeing this issue. Any feedback?
dheerajv09 commentedon Apr 29, 2022
If we make
PaginatedDataTable.rowsPerPageequal to_rows count. I think issue get's resolved.Basically if we add
PaginatedDataTable.rowsPerPagegreater than_rows countit adds extra empty rows.empty rows added =
PaginatedDataTable.rowsPerPage-_rows count.@TahaTesser @s3dibrahim Let me know if it resolves issue.
raphael-bmec-co commentedon Apr 29, 2022
This is something I tried but it does not resolve the issue in a manner that meets material design.
The pagination toolbar is then halfway down the page instead of at the bottom of the page.
raphael-bmec-co commentedon Jun 10, 2022
Has this been assigned a priority yet?
DmitriyIgnashchenko commentedon Jun 26, 2022
having the same issue, any solutions?
michalpie commentedon Jun 27, 2022
This issue is even more annoying when check boxes are shown - you get check boxes for empty rows...
15 remaining items
TahaTesser commentedon Aug 10, 2023
@aakash-pamnani
Can you please link the correct issue for #130389?
aakash-pamnani commentedon Aug 12, 2023
@TahaTesser I have linked the correct issue in that PR,

BTW what do you think about this solution?
raphael-bmec-co commentedon Aug 12, 2023
I don't think this will work as
remainingRowswill be zero.There needs to be some kind of expanded material widget between the last row and the footer.
aakash-pamnani commentedon Aug 12, 2023
Not the remaining rows the rows that are empty after all rows are done.
I have tried this and is working fine,
Will create a PR in some time
aakash-pamnani commentedon Aug 13, 2023
1st approch :aakash-pamnani@898f899
2nd approch : aakash-pamnani@7404c49
Which one is better?
mrleisen commentedon Aug 15, 2023
@aakash-pamnani 1st approch looks good.
kaliosek commentedon Aug 25, 2023
Please consider if it will be better when last page has less rows than rowsPerPage the table shouldn't add any empty rows or blank space and shows only data?
aakash-pamnani commentedon Aug 25, 2023
If we don't add empty space then the table footer will shift up which is not good according to material design
Fixed : Empty Rows shown at last page in Paginated data table (#132646)
github-actions commentedon Nov 1, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.