Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

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

@itsnotmeman

Description

@itsnotmeman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions