Flutter Task-1
Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web and desktop from a single codebase.
Main features of Flutter Framework:
1. Fast development
2. Expressive and Flexible UI
3. Native Performance
Prerequisties:
1. Flutter SDK installed
2. Android SDK installed
3. VS Code(IDE)
4. Android device or AVD
Task1: Flutter App Development‼️
1.Create a flutter app.
2. Use assets (eg. audios and videos).
3. App will have to play this audios and videos from Assets.
4. Also add Features to play audio and video from Internet(Network).
5. Create buttons like play, pause and stop for audio and video both.
lets get Started
I will make a Media Player which is capable of playing audios and videos from the internet,
Step 1:
First using command line I will create flutter app
cmd: flutter create <app_name>
Step 2:
Open vs code
Slect the folder then open the main.dart file and remove all the existing code. so that we will build the app from scratch. Here we will use Material Design Language.
Android Studio's Sdk's are not enough for our app, so I have installed the packages from "pub.dev" Go to pub.dev, search for the Packages you required, update it in the pubspec.yml file
we can use the cmd: flutter pub get
After this restart the IDE so as to load the package.
Step 3:
Create a home.dart file inside the lib folder
we will create two buttons, one for the music and other for the videos. When someone will click the the button it will automatically navigate to the the page of their choice and enjoy the Media Player.
Step 4:
Now we will create music.dart and video.dart
Now we are ready to run our code and here are the Screenshots of the app
Code is in Github: https://github.com/sabacs12/Flutter-app/tree/master/task1
So here I sucessfully completed my first flutter task assigned by our mentor Vimal Daga sir
Thank you Vimal sir for such a great training. You are really an amazing mentor. Thank you sir for guiding me and all the students associated with linux world.










Comments
Post a Comment