OneCompiler

Kaizo

270

Manual>>
Reference.pdf

Drt_File>>

2//Widgets: Center, Container, InkWell, Row,Column. (add image not included)
P2_Merged.dart

3//Demonstration of SingleChildScrollView,ListView, ListView.builder and GridView widgets.
P3_Merged.dart

4//Create simple design of login page using TextField widget and Elevated button.
P4_Merged.dart

5//Program to navigate from one page to another page.
P5_Merged.dart

6//Program to Passing data from one page to another page.
P6_Merged.dart

7//Create BottomNavigationBar, TabBar and Navigation Drawer in flutter.
P7_Merged.dart

8//Create Pop up menu/ DropDown menu and AlertDialog in flutter
P8_Merged.dart

#Add image in project folder and display it on screen.
Steps :

  • Create new folder with name ‘asset’
  • Add image with .jpg or .png extension in that folder
  • Open pugspec.yaml file and remove the comments of line number 63 and 64 and
    save file.
  • In main.dart file inside body, type code for image widget and add path inside
    image widget.
    Code:

Pubspec.yaml:
assests:
- asset/
- images/a_dot_ham.jpeg

Main.dart:
body: Image.asset('asset/flower.jpg'),