Merge branch 'foss42:main' into add-feature-mobile-layout

This commit is contained in:
Ragul Raj
2024-03-14 14:08:14 +05:30
committed by GitHub
45 changed files with 7725 additions and 992 deletions

View File

@ -23,6 +23,9 @@ class IntroMessage extends StatelessWidget {
return FutureBuilder(
future: introData(),
builder: (BuildContext context, AsyncSnapshot<void> snapshot) {
if (snapshot.hasError) {
return const ErrorMessage(message: "An error occured");
}
if (snapshot.connectionState == ConnectionState.done) {
if (Theme.of(context).brightness == Brightness.dark) {
text = text.replaceAll("{{mode}}", "dark");
@ -37,9 +40,6 @@ class IntroMessage extends StatelessWidget {
padding: kPh60,
);
}
if (snapshot.hasError) {
return const ErrorMessage(message: "An error occured");
}
return const Center(child: CircularProgressIndicator());
},
);