Something went wrong. Try again.
Assignment 1 | Make with Flutter Bootcamp
Something went wrong. Try again.
4.9 kB · 144 lines
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144import 'package:flutter/material.dart';
void main() => runApp(MaterialApp( home:ProfileApp(),));
class ProfileApp extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: Column( children: <Widget>[ Container( decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [Colors.greenAccent, Colors.blueAccent] ) ), child: Container( width: double.infinity, height: 350.0, child: Center( child: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ CircleAvatar( backgroundImage: NetworkImage( "https://arjunkrishna.in/images/profile-pic.jpg", ), radius: 65.0, ), SizedBox( height: 10.0, ), Text( "ARJUN KRISHNA", style: TextStyle( fontSize: 26.0, fontWeight:FontWeight.w700, color: Colors.white, ), ), Text( "MEVN Stack Developer", style: TextStyle( fontSize: 20.0, color: Colors.white, ), ), Text( "IoT Enthusiast, Graphic Designer", style: TextStyle( fontSize: 18.0, color: Colors.white, ), ), Text( "Open-Source Contributor", style: TextStyle( fontSize: 18.0, color: Colors.white, ), ), // SizedBox( // height: 10.0, // ),
], ), ), ) ), Container( child: Padding( padding: const EdgeInsets.symmetric(vertical: 30.0,horizontal: 16.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Text( "About Me:", style: TextStyle( color: Colors.blueAccent, fontWeight:FontWeight.w500, fontStyle: FontStyle.normal, fontSize: 26.0 ), ), SizedBox( height: 10.0, ), Text('Yet another human being born towards the end of the 20th century, and continues his exploration and experimentation on the technology that 21st century offers...', style: TextStyle( fontSize: 20.0, fontWeight: FontWeight.w300, color: Colors.black, letterSpacing: 1.8, ), ), ], ), ), ), SizedBox( height: 18.0, ), Container( width: 300.00,
child: RaisedButton( onPressed: (){}, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(80.0) ), elevation: 0.0, padding: EdgeInsets.all(0.0), child: Ink( decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.centerRight, end: Alignment.centerLeft, colors: [Colors.blueAccent,Colors.greenAccent] ), borderRadius: BorderRadius.circular(30.0), ), child: Container( constraints: BoxConstraints(maxWidth: 300.0, minHeight: 50.0), alignment: Alignment.center, child: Text("Contact Me", style: TextStyle(color: Colors.white, fontSize: 24.0, fontWeight:FontWeight.w500), ), ), ) ), ), ], ), ); }}