Posts

Git Commands

Download git https://git-scm.com/ if you want to add your project to bitbucket or github. you can use the following commands Step 1: Right Click-> Git Bash Here Step 2: Type git init (For initializing git). Step 3: Type git add -A (Get all files in the staging area). Step 4: Type git commit -m "First Commit"(Commit Changes) Step 5: Type git remote add origin https://.. bitbucket.org/ ../ABC.git (Your repo URL) Step 6: Type git push -f origin master(your branch name)

Flutter Navigation Drawer Example

Image
main.dart ========= import 'package:flutter/material.dart' ; import 'package:akeepo/navdrawer.dart' ; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @ override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter' , debugShowCheckedModeBanner: false , theme: ThemeData( primarySwatch: Colors.blue, ), home: NavDrawer(), ); } } navdrawer.dart ================ import 'package:flutter/material.dart' ; class NavDrawer extends StatefulWidget { @ override _NavDrawerState createState() => _NavDrawerState(); } class _NavDrawerState extends State < NavDrawer > { @ override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text( "Nav Drawer" )), drawer: new Drawer( child: new ListView( children: <

Flutter BottomNavigation Example

Image
main.dart ======= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import 'package:flutter/material.dart' ; import 'package:akeepo/bottomnavigation.dart' ; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @ override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter' , debugShowCheckedModeBanner: false , theme: ThemeData( primarySwatch: Colors.blue, ), home: BottomNavigation(), ); } } bottomnavigation.dart ================== 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

Flutter Tabbar Example

Image
Flutter Tabbar Example   main.dart =========== 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import 'package:akeepo/tabbar.dart' ; import 'package:flutter/material.dart' ; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @ override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter' , debugShowCheckedModeBanner: false , theme: ThemeData( primarySwatch: Colors.blue, ), home: TabBarDemo(), ); } } tabbar.dart ========== 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 9

Flutter ListView Search

Image
  contactslist.dart ================ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 class ContactsList extends StatefulWidget { static String tag = 'contactlist-page' ; @ override State < StatefulWidget > createState() { return new _ContactsListState(); } } List < Contact > contacts = [ Contact( fullName: 'Pratap Kumar' , email: 'pratap@example.com' ), Contact( fullName: 'Jagadeesh' , email: 'Jagadeesh@example.com' ), Contact( fullName: 'Srinivas' , email: 'Srinivas@example.com' ), Contact( ful

Flutter ListView Example using Http

Image
userslist.dart ============= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 import 'dart:async' ; import 'dart:convert' ; import 'package:flutter/material.dart' ; import 'package:http/http.dart' as http; class UsersList extends StatefulWidget { static String tag = 'users-page' ; @ override State < StatefulWidget > createState() { return new _UsersListState(); } } class _UsersListState extends State < UsersList > { @ override Future < List < User >> _getUsers() as ync { List < User > users = [];