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

[Bug] Scrollbar not visible anymore in the new PlutoGridPlus version. #140

Open
itsnotmeman opened this issue Mar 6, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@itsnotmeman
Copy link

Steps to reproduce the bug

  1. Try to scroll in the PlutoGrid.

Expected results

See the scrollbar.

Actual results

The scrollbar is not visible anymore in the new versions of PlutoGridPlus.
Last working version is 8.4.3

Code sample

import 'package:flutter/material.dart';
import 'package:pluto_grid_plus/pluto_grid_plus.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'PlutoGrid Example',
      home: Scaffold(
        appBar: AppBar(title: const Text('PlutoGrid Example')),
        body: const SimplePlutoGrid(),
      ),
    );
  }
}

class SimplePlutoGrid extends StatelessWidget {
  const SimplePlutoGrid({super.key});

  @override
  Widget build(BuildContext context) {
    return PlutoGrid(
      configuration: PlutoGridConfiguration(
        scrollbar: const PlutoGridScrollbarConfig(
          isAlwaysShown: true,
          scrollbarThickness: 8,
          scrollbarThicknessWhileDragging: 10,
        ),
      ),
      columns: List.generate(
        3,
        (index) => PlutoColumn(
          title: 'Column $index',
          field: 'field$index',
          type: PlutoColumnType.text(),
        ),
      ),
      rows: List.generate(
        100,
        (index) => PlutoRow(
          cells: {
            'field0': PlutoCell(value: 'Row $index - Col 0'),
            'field1': PlutoCell(value: 'Row $index - Col 1'),
            'field2': PlutoCell(value: 'Row $index - Col 2'),
          },
        ),
      ),
    );
  }
}

Execution Environment

Flutter version
Flutter version is 3.29.0

PlutoGrid version
PlutoGrid version from 8.4.4

OS
Windows 11

@itsnotmeman itsnotmeman added the bug Something isn't working label Mar 6, 2025
@itsnotmeman itsnotmeman changed the title [Bug] Scrollbar not visible anymore in the new PluoGridPlus version. [Bug] Scrollbar not visible anymore in the new PlutoGridPlus version. Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant