Fix memory leak in data table (#146892)
This commit is contained in:
parent
47a4c69b82
commit
c83d650de4
@ -6,6 +6,7 @@ import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';
|
||||
|
||||
void main() {
|
||||
test('DataTableThemeData copyWith, ==, hashCode basics', () {
|
||||
@ -552,7 +553,10 @@ void main() {
|
||||
});
|
||||
|
||||
// This is a regression test for https://github.com/flutter/flutter/issues/143340.
|
||||
testWidgets('DataColumn label can be centered with DataTableTheme.headingRowAlignment', (WidgetTester tester) async {
|
||||
testWidgets('DataColumn label can be centered with DataTableTheme.headingRowAlignment',
|
||||
// TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
|
||||
experimentalLeakTesting: LeakTesting.settings.withTracked(classes: const <String>['CurvedAnimation']),
|
||||
(WidgetTester tester) async {
|
||||
const double horizontalMargin = 24.0;
|
||||
|
||||
Widget buildTable({ MainAxisAlignment? headingRowAlignment, bool sortEnabled = false }) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user