mirror of
https://github.com/foss42/apidash.git
synced 2025-06-03 16:27:06 +08:00
Merge branch 'foss42:main' into add-feature-mobile-layout
This commit is contained in:
@ -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());
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user