Posts

Showing posts from July, 2020

🎴Layout, ⚡ Hot Reload in Flutter!!!

Image
Creation of own layout in our app         using a Flutter framework!!    Hot Reload:-  It is modified our flutter file just by saving it. Do some changes and just saved, it gets automatically updated in a second. For that, we need to add a hot reload in the main dart file show below. import   'package:flutter/material.dart' ; import   'ui/home.dart' ; main () {    runApp ( MyApp ()); } //following code is for hot reload class   MyApp   extends   StatelessWidget  {    @override    Widget   build ( BuildContext  context) {      return   app1 ();   } } For changing status bar color just add code in pubspec.yaml file and then save it after saving run cmd flutter pub get  and automatically install the library.    fluttertoast :  ^7.0.1      flutter_statusbarcolor :  ^0.2.3 Flutter toast is useful for interactive nature also responds after a click. Now for addition, the status bar uses the following line of code in dart file.    FlutterStatusbarcolor . setStatusBarColor ( Col

Task - 4 DevOps Assembly Lines

Image
Task - 4 DevOps Assembly Lines Task Overview : Create A dynamic Jenkins cluster and perform task-3 using the dynamic Jenkins cluster. Steps to proceed as: Create container image that’s has Linux and other basic configuration required to run Slave for Jenkins. ( example here we require kubectl to be configured ) When we launch the job it should automatically starts job on slave based on the label provided for dynamic approach. Create a job chain of job1 & job2 using build pipeline plugin in Jenkins Job1 : Pull the Github repo automatically when some developers push repo to Github and perform the following operations as: a. Create the new image dynamically for the application and copy the application code into that corresponding docker image b. Push that image to the docker hub (Public repository) ( Github code contain the application code and Dockerfile to create a new image ) 5. Job2 ( Should be run on the dynamic slave of Jenkins configured with Kubernetes kubectl command): Launch