Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixedLeftColumns is not reflecting using DataTable2 (Tested on web) #1705

Open
Haris2v opened this issue Jul 8, 2024 · 3 comments
Open

fixedLeftColumns is not reflecting using DataTable2 (Tested on web) #1705

Haris2v opened this issue Jul 8, 2024 · 3 comments

Comments

@Haris2v
Copy link

Haris2v commented Jul 8, 2024

Describe the bug
I have set fixedLeftColumns to 2, which should make 2 most left columns sticky. But its not working. Even tried with 1 and other number and no result. Although fixedTopRows seems to be working fine.

To Reproduce
Here is the example code to reproduce.

DataTable2(
          columnSpacing: 12,
          horizontalMargin: 12,
          lmRatio: 2.5,
          fixedLeftColumns: 2,
          isHorizontalScrollBarVisible: true,
          columns: [
            DataColumn2(size: ColumnSize.S, label: BodyLargeText('Index')),
            DataColumn2(size: ColumnSize.L, label: BodyLargeText('Name')),
            DataColumn2(size: ColumnSize.L, label: BodyLargeText('Email')),
          ],
          rows: List<DataRow>.generate(
              5,
              (index) => DataRow(cells: [
                    DataCell(BodyLargeText('${index+1}')),
                    DataCell(BodyLargeText('Name ${index+1}')),
                    DataCell(BodyLargeText('Email ${index+1}')),
                  ])),
        ),

Screenshots

Versions
fl_chart version: fl_chart: ^0.68.0

Flutter doctor

[✓] Flutter (Channel stable, 3.19.0, on macOS 14.5 23F79 darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.90.0)
[✓] Connected device (4 available)
[✓] Network resources

@Haris2v Haris2v changed the title fixedLeftColumns is not reflecting (Tested on web) fixedLeftColumns is not reflecting using DataTable2 (Tested on web) Jul 8, 2024
@imaNNeo
Copy link
Owner

imaNNeo commented Jul 19, 2024

Are you sure your issue is related to fl_chart?
I couldn't understand

@Haris2v
Copy link
Author

Haris2v commented Jul 20, 2024

@imaNNeo Have you tried to reproduce this issue or check whats happening there ?

@imaNNeo
Copy link
Owner

imaNNeo commented Jul 20, 2024

No, because it is not a reproducible code. A reproducible code is a code that I can just run in my main.dart file,
What is DataTable2? What is DataRow? We don't have these concepts in the fl_chart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants