Posts

Dice app complete source code

Image
Dice app complete source code GitHub Repo :  https://github.com/vkrngn/Dicee-Flutter-Completed.git import 'dart:math' ; import 'package:flutter/material.dart' ; void main () { return runApp( MaterialApp ( home: Scaffold ( backgroundColor: Colors. red , appBar: AppBar ( title: Text ( 'Dicee' ) , backgroundColor: Colors. red , ) , body: DicePage () , ) , ) , ) ; } class DicePage extends StatefulWidget { @override _DicePageState createState () => _DicePageState () ; } class _DicePageState extends State<DicePage> { int leftDiceNumber = 1 ; int rightDiceNumber = 1 ; void changeDiceFace (){ leftDiceNumber = Random ().nextInt( 6 ) + 1 ; rightDiceNumber = Random ().nextInt( 6 ) + 1 ; } @override Widget build (BuildContext context) { return Center ( child: Row ( children: <Widget>[ Expanded ( child: FlatButton (

MiCard using Flutter 2 (Different Code) *Completed*

Image
import 'package:flutter/material.dart' ; void main () { runApp( MaterialApp ( home: Scaffold ( backgroundColor: Colors. teal , body: SafeArea ( child: Column ( mainAxisAlignment: MainAxisAlignment. center , children: <Widget>[ CircleAvatar ( radius: 50 , backgroundImage: NetworkImage ( 'https://images.unsplash.com/photo-1518568740560-333139a27e72?ixlib=rb-1.2.1&auto=format&fit=crop&w=1534&q=80' ) , ) , Text ( 'Nature Lover' , style: TextStyle ( fontFamily: 'Pacifico' , fontSize: 40.0 , color: Colors. white , ) , ) , Text ( 'FLUTTER DEVELOPER' , style: TextStyle ( fontFamily: 'SourceSansPro' ,

MiCard Using Flutter 1

Image
import 'package:flutter/material.dart' ; void main () { runApp( MaterialApp ( home: Scaffold ( backgroundColor: Colors. teal , body: SafeArea ( child: Column ( children: <Widget>[ CircleAvatar ( radius: 50 , backgroundImage: NetworkImage ( 'https://images.unsplash.com/photo-1518568740560-333139a27e72?ixlib=rb-1.2.1&auto=format&fit=crop&w=1534&q=80' ) , ) , Text ( 'Nature Lover' , style: TextStyle ( fontFamily: 'Pacifico' , fontSize: 40.0 , color: Colors. white , ) , ) , Text ( 'FLUTTER DEVELOPER' , style: TextStyle ( fontFamily: 'SourceSansPro' , fontSize: 20.0 , color: Colors. white

1. Flutter Layout Challenge

Image
Flutter Layout Challenge Code import 'package:flutter/material.dart' ; void main () { runApp( MaterialApp ( home: Scaffold ( backgroundColor: Colors. teal , body: SafeArea ( child: Row ( mainAxisAlignment: MainAxisAlignment. spaceBetween , children: <Widget>[ Container ( height: double. infinity , width: 100.0 , color: Colors. red , ) , Column ( mainAxisAlignment: MainAxisAlignment. center , children: <Widget>[ Container ( height: 100.0 , width: 100.0 , color: Colors. yellow , ) , Container ( height: 100.0 , width: 100.0 , color: Colors. green , ) , ] , ) ,