Making first app with Flutter
Downloading flutter
https://flutter.dev/docs/get-started/install/windows
Setting up
- Extract
2. Set the name of the zip file to something smaller otherwise it will give name too long error.
3. Add environment variable.
3. run “flutter doctor” to check if everything is fine.
You need to accept the licences before building in flutter.
flutter doctor --android-licenses
Running first app
Creating first app
flutter create myappcd myappflutter devicesflutter run
PART #2 : Making a navigation drawer
Text
Text("Notes")Text("Flutter Step-by-Step",
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontWeight: FontWeight.w500))
Image
flutter:
uses-material-design: true
assets:
- assets/images/lake.jpgImage.asset('assets/images/lake.jpg') Image.asset(
'assets/images/lake.jpg',
height: double.infinity,
width: double.infinity
) Image.network( 'https://picsum.photos/250?image=9', )
Snackbar
Scaffold.of(context).showSnackBar(SnackBar(
content: Text("Sending Message"),
));
Click
onTap: () {}
Using new plugin
flutter plugin repository : https://pub.dev/
dependencies:
flutter_redux: ^0.7.0$ flutter pub getimport 'package:flutter_redux/flutter_redux.dart';
Icon
Icon(Icons.star)