# Splash Screen

### Location

magaza\_ui/screens/splash.dart

### Screenshot

![](https://436780-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1f1D_inwZ2KLboxO9P%2F-M2h_GvyCPgDdXrBXoYU%2F-M2h_hxghyqN-2q-CAsh%2Fimage.png?alt=media\&token=e00e29d2-d082-462b-a5ce-2774da59484f)

### Customization

There is a container that holds the background image. Here is the code snippet to look at:

```
Container(
  decoration: BoxDecoration(
      image: DecorationImage(
          image: AssetImage('assets/magaza/splash-bg.png'),
          fit: BoxFit.fitWidth
      )
  ),
),
```

Open this file in your favorite photo editor

```
assets/magaza/splash-bg.png
```

Paste/position your preferred image and then overwrite the file, to maintain consistency across multiple screens

### Changing how long the splash screen stays visible

Right after the class declaration, there is a timer duration of 3 seconds, after-which the app navigates to the slider. change the number to your choosing.

```
@override
void initState(){
  super.initState();
  Timer(Duration(seconds: 3), ()=> Navigator.of(context).pushNamed('/slider'));
}
```

�


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sememojugbe.gitbook.io/fluttermagazineui/the-app/splash-screen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
