Skip to content

syncfusion_flutter_datagrid MediaQuery.textScalerOfΒ #1659

@Kevnlan

Description

@Kevnlan

I am trying to create an app that implements syncfusion_flutter_datagrid for work research purposes, however when I run the project after adding this import import 'package:syncfusion_flutter_datagrid/datagrid.dart'; I get the following error

../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_datagrid-24.2.4/lib/src/datagrid_widget/sfdatagrid.dart:3228:20: Error: Member not found: 'MediaQuery.textScalerOf'.
        MediaQuery.textScalerOf(context).scale(1));
                   ^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_datagrid-24.2.4/lib/src/datagrid_widget/runtime/column.dart:1224:9: Error: No named parameter with the name 'textScaler'.
        textScaler: TextScaler.linear(dataGridConfiguration.textScaleFactor),
        ^^^^^^^^^^
../../../dev/flutter/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
  TextPainter({
  ^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

I have had to comment out code inside the package for my app to run.

I am on the version 24.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    data gridData grid component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions