Skip to content

Commit e242007

Browse files
chore: remove deprecated API for firestore/rtdb
1 parent 65e4c59 commit e242007

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

packages/firebase_ui_database/lib/src/table_builder.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ class FirebaseDatabaseDataTable extends StatefulWidget {
5151
this.actions,
5252
this.sortColumnIndex,
5353
this.sortAscending = true,
54-
@Deprecated('Migrate to use dataRowMinHeight and dataRowMaxHeight instead.')
55-
double? dataRowHeight,
5654
double? dataRowMinHeight,
5755
double? dataRowMaxHeight,
5856
this.headingRowHeight = 56.0,
@@ -69,10 +67,8 @@ class FirebaseDatabaseDataTable extends StatefulWidget {
6967
columnLabels is LinkedHashMap,
7068
'only LinkedHashMap are supported as header',
7169
), // using an assert instead of a type because `<A, B>{}` types as `Map` but is an instance of `LinkedHashMap`
72-
dataRowMinHeight =
73-
dataRowHeight ?? dataRowMinHeight ?? kMinInteractiveDimension,
74-
dataRowMaxHeight =
75-
dataRowHeight ?? dataRowMaxHeight ?? kMinInteractiveDimension;
70+
dataRowMinHeight = dataRowMinHeight ?? kMinInteractiveDimension,
71+
dataRowMaxHeight = dataRowMaxHeight ?? kMinInteractiveDimension;
7672

7773
/// The firestore query that will be displayed
7874
final Query query;

packages/firebase_ui_firestore/lib/src/table_builder.dart

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ class FirestoreDataTable extends StatefulWidget {
6868
this.actions,
6969
this.sortColumnIndex,
7070
this.sortAscending = true,
71-
@Deprecated(
72-
'Migrate to use dataRowMinHeight and dataRowMaxHeight instead. '
73-
'This feature was deprecated after v3.7.0-5.0.pre.',
74-
)
75-
double? dataRowHeight,
7671
double? dataRowMinHeight,
7772
double? dataRowMaxHeight,
7873
this.headingRowHeight = 56.0,
@@ -93,10 +88,8 @@ class FirestoreDataTable extends StatefulWidget {
9388
columnLabels is LinkedHashMap,
9489
'only LinkedHashMap are supported as header',
9590
),
96-
dataRowMinHeight =
97-
dataRowHeight ?? dataRowMinHeight ?? kMinInteractiveDimension,
98-
dataRowMaxHeight =
99-
dataRowHeight ?? dataRowMaxHeight ?? kMinInteractiveDimension;
91+
dataRowMinHeight = dataRowMinHeight ?? kMinInteractiveDimension,
92+
dataRowMaxHeight = dataRowMaxHeight ?? kMinInteractiveDimension;
10093

10194
/// When specified, the builder will be used to display your own widget for the cell
10295
final CellBuilder? cellBuilder;

0 commit comments

Comments
 (0)