chore(localization): fix analyzer warning
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -64,29 +64,27 @@ class MyApp extends StatelessWidget {
|
|||||||
final Channel channel;
|
final Channel channel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) => MaterialApp(
|
||||||
return MaterialApp(
|
theme: ThemeData.light(),
|
||||||
theme: ThemeData.light(),
|
darkTheme: ThemeData.dark(),
|
||||||
darkTheme: ThemeData.dark(),
|
// Add all the supported locales
|
||||||
// Add all the supported locales
|
supportedLocales: const [
|
||||||
supportedLocales: const [
|
Locale('en'),
|
||||||
Locale('en'),
|
Locale('hi'),
|
||||||
Locale('hi'),
|
Locale('fr'),
|
||||||
Locale('fr'),
|
Locale('it'),
|
||||||
Locale('it'),
|
],
|
||||||
],
|
// Add GlobalStreamChatLocalizations.delegates
|
||||||
// Add GlobalStreamChatLocalizations.delegates
|
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
||||||
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
builder: (context, widget) => StreamChat(
|
||||||
builder: (context, widget) => StreamChat(
|
client: client,
|
||||||
client: client,
|
child: widget,
|
||||||
child: widget,
|
),
|
||||||
),
|
home: StreamChannel(
|
||||||
home: StreamChannel(
|
channel: channel,
|
||||||
channel: channel,
|
child: const ChannelPage(),
|
||||||
child: const ChannelPage(),
|
),
|
||||||
),
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A list of messages sent in the current channel.
|
/// A list of messages sent in the current channel.
|
||||||
|
|||||||
Reference in New Issue
Block a user