Skip to main content

Posts

Most Important Flutter Widgets Code snippet | Learn Flutter by Code

 Create Complete quiz app using flutter app with timer : import 'dart:async'; import 'package:flutter/material.dart'; class quizApp extends StatelessWidget {   @override   Widget build(BuildContext context) {     return MaterialApp(       home: quizAppScreen(),     );   } } class quizAppScreen extends StatefulWidget {   @override   quizAppScreenState createState() => quizAppScreenState(); } class quizAppScreenState extends State<quizAppScreen> {   String? _selectedValue1;   String? _selectedValue2;   String? _selectedValue3;   int _secondsRemaining = 20;   late Timer _timer;   @override   void initState() {     super.initState();     startTimer();   }   void startTimer() {     _timer = Timer.periodic(Duration(seconds: 1), (timer) {       setState(() {         if (_secondsRemaining > 0) {     ...

High level Flutter Code snippet | Learn Flutter with real-time App

 Create EVM Pad Application: import 'package:flutter/material.dart'; void main() {   runApp(EVMPadApp()); } class EVMPadApp extends StatelessWidget {   @override   Widget build(BuildContext context) {     return MaterialApp(       title: 'EVM Pad',       home: EVMHomePage(),     );   } } class EVMHomePage extends StatefulWidget {   @override   _EVMHomePageState createState() => _EVMHomePageState(); } class _EVMHomePageState extends State<EVMHomePage> {   final List<Candidate> candidates = [     Candidate('Indian National Congress', 'assets/images/congress.png'),     Candidate('Bjp', 'assets/images/bjp.png'),     Candidate('Aap', 'assets/images/aap.png'),     Candidate('Bsp', 'assets/images/bsp.png'),   ];   void showResultsDialog(BuildContext context) {     int totalVotes =     candidates.fold(0, (sum, candidate) =...

Advance Flutter Code Snippet | Learn Flutter by Code

 Dropdownlist Example in Flutter: import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; class DropdownDemo extends StatefulWidget {   const DropdownDemo({Key? key}) : super(key: key);   @override   State<DropdownDemo> createState() => _DropdownDemoState(); } class _DropdownDemoState extends State<DropdownDemo> {   String dropdownValue = 'Area of circle';   @override   Widget build(BuildContext context) {     return Scaffold(       appBar: AppBar(title: const Text("DDDD")),       body: Center(         child: Column(           children: [             SizedBox(               height: 50,             ),             // Step 2.             DropdownButton<String>(   ...

Flutter Code Snippet | How to Write Code on Flutter with Different Widgets

 Flutter Exampe 1st:  1)  Print Welcome message:- Create MyTextPage.dart file import 'package:flutter/material.dart'; class MyTextPage extends StatelessWidget {   @override   Widget build(BuildContext context) {     return Scaffold(       appBar: AppBar(           title:Text("Text Widget Example")       ),       body: Center(           child:Text("Welcome to SHIVA CONCEPT",style: TextStyle(fontSize: 35,               color: Colors.purple,               fontWeight: FontWeight.w700,               fontStyle: FontStyle.italic,               letterSpacing: 8,               wordSpacing: 20,               backgroundColor: Colors.yellow,       ...

Millionaire Question List to check your logical skills in Any language?

Millionaire Question List  1)  WAP to display this pattern *******  ****** *****   **** ***    ** * 2)  WAP to find most repeated word in paragraph? 3)  WAP to display total combination of any word. naman amann manan annma 4) Write a Program to print before five character and after five character of any entered charatcer in cyclic pattern? 5) Write a Program to sort the prime element in List? 6) Create userdefine exception to validate name, name should accept alphabets only? 7) Create a program to read and write data from file in dictionary pattern? 8) Write a Program to display prime elements in fibonacci series? 9) Write a program to write any name in binary form? 10) Write a Program to create lift program where no of floor and total lift movement entered by the user's 11) Write a Program to merge two array in one array? 12) Write a Program to display only duplicate elements and it should be display once? [1,2,2,2,3,4,5,1,7] 1,2 13) Wri...

Create OM NAMAH SHIVAY JAP MANTRA based application using Python

 Create OM NAMAH SHIVAY JAP MANTRA based application using Python This application require, pyttsx3 based library to convert text to speech. install pip install pyttsx3  write this code. import time import pyttsx3   engine = pyttsx3.init() engine.setProperty('rate', 150)  # Speed of speech (words per minute) engine.setProperty('volume', 0.8)  # Volume (0.0 to 1.0) count=1 while True:     print("OM NAMAH SHIVAY")     engine.say("OM NAM AH SHIV AY ")     engine.runAndWait()     time.sleep(2)     print(count)     count=count+1     if count>10:         break

What is MERN Stack?

 what is MERN STACK: it is a combination of front-end,back-end,middleware and database technology.it is used to create dynamic web application. it is also called full stack web development based technology to create new era web based application. NODE js provide better performance and scalable environment to create API and connect with MONGO db database. it is most scalable environment in IT industry. React is used to design UI using HTML, CSS and JSX. M--> (Mongo DB) it is NO SQL based database E --> (Express JS) it is web framework that will work as a middleware between application and database. R --> (React JS)  it is JS library that is used to create dynamic user interface. N ---> (NODE JS) it is the runtime environment that provide database operation using javascript with mongodb. Learning path 1) UI --->  HTML + CSS + JS + REACT JS 2) BACKEND :-  NODE + MONGO DB, MYSQL 3) MIDDLEWARE:   EXPRESS JS 4) REDUX:- it is design pattern to crea...