flutter errors shader compilation error 1

flutter errors shader compilation error

# Open the terminal, navigate to your folder and type:
flutter run --enable-software-rendering 
# and run again.

Here is what the above code is Doing:
1. We are creating a new class called MyApp.
2. We are extending the StatelessWidget class.
3. We are overriding the build method.
4. We are returning a MaterialApp widget.
5. Inside the MaterialApp widget, we are returning a Scaffold widget.
6. Inside the Scaffold widget, we are returning a Center widget.
7. Inside the Center widget, we are returning a Text widget.
8. The Text widget is displaying the text “Hello World”.

Similar Posts