Soru/moor

This commit is contained in:
Sorunome 2020-05-13 13:58:59 +00:00 committed by Christian Pauly
commit f594c7005d
55 changed files with 1034 additions and 1133 deletions

View file

@ -21,11 +21,11 @@ void main() {
}
class App extends StatelessWidget {
final String platform = kIsWeb ? "Web" : Platform.operatingSystem;
final String platform = kIsWeb ? 'Web' : Platform.operatingSystem;
@override
Widget build(BuildContext context) {
return Matrix(
clientName: "FluffyChat $platform",
clientName: 'FluffyChat $platform',
child: Builder(
builder: (BuildContext context) => ThemeSwitcherWidget(
child: Builder(
@ -47,7 +47,7 @@ class App extends StatelessWidget {
const Locale('pl'), // Polish
],
locale: kIsWeb
? Locale(html.window.navigator.language.split("-").first)
? Locale(html.window.navigator.language.split('-').first)
: null,
home: FutureBuilder<LoginState>(
future: