chore(ui,core,llc,persistance,localization): remove analysis warnings due to flutter 2.5
This commit is contained in:
@@ -129,7 +129,7 @@ void main() {
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) =>
|
||||
Container(key: errorWidgetKey),
|
||||
pagination: pagination,
|
||||
limit: pagination.limit,
|
||||
);
|
||||
|
||||
final mockClient = MockClient();
|
||||
@@ -186,7 +186,7 @@ void main() {
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => Container(key: emptyWidgetKey),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
pagination: pagination,
|
||||
limit: pagination.limit,
|
||||
);
|
||||
|
||||
final mockClient = MockClient();
|
||||
@@ -243,7 +243,7 @@ void main() {
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
pagination: pagination,
|
||||
limit: pagination.limit,
|
||||
);
|
||||
|
||||
final mockClient = MockClient();
|
||||
@@ -306,7 +306,7 @@ void main() {
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
pagination: pagination,
|
||||
limit: pagination.limit,
|
||||
);
|
||||
|
||||
final mockClient = MockClient();
|
||||
@@ -420,7 +420,7 @@ void main() {
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) =>
|
||||
const Offstage(),
|
||||
pagination: pagination.copyWith(limit: limit),
|
||||
limit: limit,
|
||||
);
|
||||
|
||||
final mockClient = MockClient();
|
||||
@@ -516,7 +516,7 @@ void main() {
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
pagination: pagination,
|
||||
limit: pagination.limit,
|
||||
);
|
||||
|
||||
expect(channelListCore.limit, pagination.limit);
|
||||
|
||||
@@ -334,7 +334,7 @@ void main() {
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
paginationParams: pagination,
|
||||
limit: pagination.limit,
|
||||
filters: testFilter,
|
||||
messageFilters: testMessageFilter,
|
||||
);
|
||||
@@ -457,7 +457,7 @@ void main() {
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) =>
|
||||
const Offstage(),
|
||||
paginationParams: pagination.copyWith(limit: limit),
|
||||
limit: limit,
|
||||
filters: testFilter,
|
||||
messageFilters: testMessageFilter,
|
||||
);
|
||||
@@ -561,7 +561,7 @@ void main() {
|
||||
errorBuilder: (BuildContext context, Object? error) => const Offstage(),
|
||||
filters: testFilter,
|
||||
messageFilters: testMessageFilter,
|
||||
paginationParams: pagination,
|
||||
limit: pagination.limit,
|
||||
);
|
||||
|
||||
expect(messageSearchListCore.limit, pagination.limit);
|
||||
|
||||
@@ -341,7 +341,7 @@ void main() {
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
pagination: pagination,
|
||||
limit: pagination.limit,
|
||||
groupAlphabetically: true,
|
||||
);
|
||||
|
||||
@@ -447,7 +447,7 @@ void main() {
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) =>
|
||||
const Offstage(),
|
||||
pagination: pagination.copyWith(limit: limit),
|
||||
limit: limit,
|
||||
groupAlphabetically: true,
|
||||
);
|
||||
|
||||
@@ -522,15 +522,15 @@ void main() {
|
||||
);
|
||||
|
||||
test('`widget.limit` should match `widget.pagination.limit`', () {
|
||||
const pagination = PaginationParams(limit: 30);
|
||||
const limit = 30;
|
||||
final userListCore = UserListCore(
|
||||
listBuilder: (_, __) => const Offstage(),
|
||||
loadingBuilder: (BuildContext context) => const Offstage(),
|
||||
emptyBuilder: (BuildContext context) => const Offstage(),
|
||||
errorBuilder: (BuildContext context, Object error) => const Offstage(),
|
||||
pagination: pagination,
|
||||
limit: limit,
|
||||
);
|
||||
|
||||
expect(userListCore.limit, pagination.limit);
|
||||
expect(userListCore.limit, limit);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user