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
@@ -24,8 +24,7 @@ class _NnStreamChatLocalizationsDelegate
/// and formatting.
class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
/// Create an instance of the translation bundle for English.
const NnStreamChatLocalizations({String localeName = 'nn'})
: super(localeName: localeName);
const NnStreamChatLocalizations({super.localeName = 'nn'});
/// A [LocalizationsDelegate] for [NnStreamChatLocalizations].
static const delegate = _NnStreamChatLocalizationsDelegate();
@@ -86,7 +85,7 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
@override
String get sendMessagePermissionError =>
'You don\'t have permission to send messages';
"You don't have permission to send messages";
@override
String get emptyMessagesText => 'There are no messages currently';
@@ -223,7 +222,7 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
@override
String get operationCouldNotBeCompletedText =>
'The operation couldn\'t be completed.';
"The operation couldn't be completed.";
@override
String get replyLabel => 'Reply';
@@ -453,10 +452,10 @@ class MyApp extends StatelessWidget {
/// If you'd prefer using minimal wrapper widgets for your app, please see
/// our other package, `stream_chat_flutter_core`.
const MyApp({
Key? key,
super.key,
required this.client,
required this.channel,
}) : super(key: key);
});
/// Instance of Stream Client.
///
@@ -510,8 +509,8 @@ class MyApp extends StatelessWidget {
class ChannelPage extends StatelessWidget {
/// Creates the page that shows the list of messages
const ChannelPage({
Key? key,
}) : super(key: key);
super.key,
});
@override
Widget build(BuildContext context) => Scaffold(
@@ -47,10 +47,10 @@ class MyApp extends StatelessWidget {
/// If you'd prefer using minimal wrapper widgets for your app, please see
/// our other package, `stream_chat_flutter_core`.
const MyApp({
Key? key,
super.key,
required this.client,
required this.channel,
}) : super(key: key);
});
/// Instance of Stream Client.
///
@@ -101,8 +101,8 @@ class MyApp extends StatelessWidget {
class ChannelPage extends StatelessWidget {
/// Creates the page that shows the list of messages
const ChannelPage({
Key? key,
}) : super(key: key);
super.key,
});
@override
Widget build(BuildContext context) => Scaffold(
@@ -72,10 +72,10 @@ class MyApp extends StatelessWidget {
/// If you'd prefer using minimal wrapper widgets for your app, please see
/// our other package, `stream_chat_flutter_core`.
const MyApp({
Key? key,
super.key,
required this.client,
required this.channel,
}) : super(key: key);
});
/// Instance of Stream Client.
///
@@ -128,8 +128,8 @@ class MyApp extends StatelessWidget {
class ChannelPage extends StatelessWidget {
/// Creates the page that shows the list of messages
const ChannelPage({
Key? key,
}) : super(key: key);
super.key,
});
@override
Widget build(BuildContext context) => Scaffold(