chore(repo): add lints, update freezed, json_serializable
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for German (`de`).
|
||||
class StreamChatLocalizationsDe extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for German.
|
||||
const StreamChatLocalizationsDe({String localeName = 'de'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsDe({super.localeName = 'de'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'Die Url kann nicht geöffnet werden';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for English (`en`).
|
||||
class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for English.
|
||||
const StreamChatLocalizationsEn({String localeName = 'en'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsEn({super.localeName = 'en'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'Cannot launch the url';
|
||||
@@ -62,7 +61,7 @@ class StreamChatLocalizationsEn 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';
|
||||
@@ -199,7 +198,7 @@ class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get operationCouldNotBeCompletedText =>
|
||||
'The operation couldn\'t be completed.';
|
||||
"The operation couldn't be completed.";
|
||||
|
||||
@override
|
||||
String get replyLabel => 'Reply';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for Spanish (`es`).
|
||||
class StreamChatLocalizationsEs extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for Spanish.
|
||||
const StreamChatLocalizationsEs({String localeName = 'es'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsEs({super.localeName = 'es'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'No se pudo abrir la url';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for French (`fr`).
|
||||
class StreamChatLocalizationsFr extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for French.
|
||||
const StreamChatLocalizationsFr({String localeName = 'fr'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsFr({super.localeName = 'fr'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => "Impossible de lancer l'url";
|
||||
@@ -63,7 +62,7 @@ class StreamChatLocalizationsFr extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get sendMessagePermissionError =>
|
||||
'Vous n\'êtes pas autorisé à envoyer des messages';
|
||||
"Vous n'êtes pas autorisé à envoyer des messages";
|
||||
|
||||
@override
|
||||
String get emptyMessagesText => "Il n'y a pas de messages actuellement";
|
||||
@@ -383,7 +382,7 @@ Limite de pièces jointes dépassée : il n'est pas possible d'ajouter plus de $
|
||||
|
||||
@override
|
||||
String get linkDisabledDetails =>
|
||||
'L\'envoi de liens n\'est pas autorisé dans cette conversation.';
|
||||
"L'envoi de liens n'est pas autorisé dans cette conversation.";
|
||||
|
||||
@override
|
||||
String get linkDisabledError => 'Les liens sont désactivés';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for Hindi (`hi`).
|
||||
class StreamChatLocalizationsHi extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for Hindi.
|
||||
const StreamChatLocalizationsHi({String localeName = 'hi'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsHi({super.localeName = 'hi'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'यूआरएल लॉन्च नहीं कर सकते';
|
||||
|
||||
@@ -3,17 +3,16 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for Italian (`it`).
|
||||
class StreamChatLocalizationsIt extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for Italian.
|
||||
const StreamChatLocalizationsIt({String localeName = 'it'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsIt({super.localeName = 'it'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'Impossibile aprire l\'url';
|
||||
String get launchUrlError => "Impossibile aprire l'url";
|
||||
|
||||
@override
|
||||
String get loadingUsersError => 'Errore durante il carimento degli utenti';
|
||||
|
||||
@override
|
||||
String get noUsersLabel => 'Non c\'é nessun utente al momento';
|
||||
String get noUsersLabel => "Non c'é nessun utente al momento";
|
||||
|
||||
@override
|
||||
String get retryLabel => 'Riprova';
|
||||
@@ -62,10 +61,10 @@ class StreamChatLocalizationsIt extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get sendMessagePermissionError =>
|
||||
'Non hai l\'autorizzazione per inviare messaggi';
|
||||
"Non hai l'autorizzazione per inviare messaggi";
|
||||
|
||||
@override
|
||||
String get emptyMessagesText => 'Non c\'é nessun messaggio al momento';
|
||||
String get emptyMessagesText => "Non c'é nessun messaggio al momento";
|
||||
|
||||
@override
|
||||
String get genericErrorText => 'Qualcosa è andato storto';
|
||||
@@ -162,11 +161,11 @@ Il file è troppo grande per essere caricato. Il limite è di $limitInMB MB.''';
|
||||
|
||||
@override
|
||||
String get enablePhotoAndVideoAccessMessage =>
|
||||
'Per favore attiva l\'accesso alle foto'
|
||||
"Per favore attiva l'accesso alle foto"
|
||||
'\ne ai video cosí potrai condividerli con i tuoi amici.';
|
||||
|
||||
@override
|
||||
String get allowGalleryAccessMessage => 'Permetti l\'accesso alla galleria';
|
||||
String get allowGalleryAccessMessage => "Permetti l'accesso alla galleria";
|
||||
|
||||
@override
|
||||
String get flagMessageLabel => 'Segnala messaggio';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for Japanese (`ja`).
|
||||
class StreamChatLocalizationsJa extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for Japanese.
|
||||
const StreamChatLocalizationsJa({String localeName = 'ja'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsJa({super.localeName = 'ja'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'URLの起動ができません';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for Korean (`ko`).
|
||||
class StreamChatLocalizationsKo extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for Korean.
|
||||
const StreamChatLocalizationsKo({String localeName = 'ko'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsKo({super.localeName = 'ko'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'URL을 시작할 수 없습니다';
|
||||
|
||||
@@ -3,8 +3,7 @@ part of 'stream_chat_localizations.dart';
|
||||
/// The translations for Portuguese (`pt`).
|
||||
class StreamChatLocalizationsPt extends GlobalStreamChatLocalizations {
|
||||
/// Create an instance of the translation bundle for Portuguese.
|
||||
const StreamChatLocalizationsPt({String localeName = 'pt'})
|
||||
: super(localeName: localeName);
|
||||
const StreamChatLocalizationsPt({super.localeName = 'pt'});
|
||||
|
||||
@override
|
||||
String get launchUrlError => 'O URL não pôde ser aberto';
|
||||
|
||||
@@ -92,7 +92,7 @@ class DummyLocalizations {
|
||||
}
|
||||
|
||||
class LocalizationTracker extends StatefulWidget {
|
||||
const LocalizationTracker({Key? key}) : super(key: key);
|
||||
const LocalizationTracker({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => LocalizationTrackerState();
|
||||
|
||||
Reference in New Issue
Block a user