Flutter Basics
Flutter Basics
4) Adding Images
-->Create a folder named assets in root project and add new folder or images
-->Go to pubspec.yaml and make assets:
-assets/images
-->Click on Pub get
--> child:Image.asset(‘assets/images/logo.png’)
Image.network(url) (for image from internet)
7) InkWell -> Click options for those which do not possess by default
10) decoration:BoxDecoration
for radius,border,shadow,shape
and in the Scaffold app in the required widget under style attribute use it like the following
->> style:Theme.of(context).textTheme.subtitle
or (To add extra styling) and Use ! to confirm that its not null
--> style:Theme.of(context).textTheme.headline1!.copyWith(color:Colors.red)
1) Stateless and Stateful Widget Class will be extended (functions like useState in react)
2) main.dart will run MyApp which extends StatlessWidget or StatefulWidget
3) In MyApp override the build function and return Material or Cupertino app and add
titile,theme,home
4) In the home property return