chore(repo): add lints, update freezed, json_serializable

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-05-16 16:58:24 +05:30
committed by xsahil03x
parent 2499755a05
commit 069f380f41
170 changed files with 616 additions and 737 deletions
@@ -13,7 +13,7 @@ Future<void> testExecutable(FutureOr<void> Function() testMain) async {
}
class CustomGoldenFileComparator extends LocalFileComparator {
CustomGoldenFileComparator(Uri testFile) : super(testFile);
CustomGoldenFileComparator(super.testFile);
@override
Future<bool> compare(Uint8List imageBytes, Uri golden) async {
@@ -29,7 +29,4 @@ class CustomGoldenFileComparator extends LocalFileComparator {
return true;
}
@override
Future<void> update(Uri golden, Uint8List imageBytes) =>
super.update(golden, imageBytes);
}
@@ -1317,7 +1317,7 @@ void main() {
await setUpWidgetTest(tester, itemPositionsListener: itemPositionsListener);
final root = WidgetsBinding
.instance!.pipelineOwner.semanticsOwner!.rootSemanticsNode!;
.instance.pipelineOwner.semanticsOwner!.rootSemanticsNode!;
final semanticNodes = <SemanticsNode>[root];
@@ -75,7 +75,7 @@ void main() {
);
testWidgets(
'it should hide delete if it\'s not my message',
"it should hide delete if it's not my message",
(WidgetTester tester) async {
final client = MockClient();
final clientState = MockClientState();
@@ -364,7 +364,7 @@ void main() {
testWidgets(
// ignore: lines_longer_than_80_chars
'tapping on delete in chat should remove the message if that\'s the only attachment and there is no text',
"tapping on delete in chat should remove the message if that's the only attachment and there is no text",
(WidgetTester tester) async {
final client = MockClient();
final clientState = MockClientState();
@@ -92,7 +92,7 @@ void main() {
width: 100,
height: 100,
child: StreamGradientAvatar(
name: 'd123@/d de:\$as',
name: r'd123@/d de:$as',
userId: 'demo123',
),
),
@@ -116,7 +116,7 @@ void main() {
width: 100,
height: 100,
child: StreamGradientAvatar(
name: '123@/d \$as', userId: 'demo123'),
name: r'123@/d $as', userId: 'demo123'),
),
),
),
@@ -60,7 +60,7 @@ void main() {
client: client,
streamChatThemeData: StreamChatThemeData.fromTheme(themeData),
connectivityStream: Stream.value(ConnectivityResult.mobile),
child: Container(
child: ColoredBox(
color: Colors.black,
child: StreamReactionBubble(
reactions: [
@@ -97,7 +97,7 @@ void main() {
client: client,
streamChatThemeData: StreamChatThemeData.fromTheme(themeData),
connectivityStream: Stream.value(ConnectivityResult.mobile),
child: Container(
child: ColoredBox(
color: Colors.black,
child: StreamReactionBubble(
reactions: [
@@ -142,7 +142,7 @@ void main() {
client: client,
streamChatThemeData: StreamChatThemeData.fromTheme(themeData),
connectivityStream: Stream.value(ConnectivityResult.mobile),
child: Container(
child: ColoredBox(
color: Colors.black,
child: StreamReactionBubble(
reactions: [
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
class SimpleFrame extends StatelessWidget {
const SimpleFrame({Key? key, required this.child}) : super(key: key);
const SimpleFrame({super.key, required this.child});
final Widget child;
@@ -38,7 +38,7 @@ This method level parameter will be removed in an upcoming release. This can be
}
class CustomGoldenFileComparator extends LocalFileComparator {
CustomGoldenFileComparator(Uri testFile) : super(testFile);
CustomGoldenFileComparator(super.testFile);
@override
Future<bool> compare(Uint8List imageBytes, Uri golden) async {