Flutter UI

Program :
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: MyHomePage(), ); } } class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> with SingleTickerProviderStateMixin { TabController tabController; @override void initState() { super.initState(); tabController = TabController(vsync: this, length: 4); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Flutter Tutorial')), body: Center( child: Padding( padding: EdgeInsets.all(10), child: Stack(children: <Widget>[ Container( height: 125, width: 125, ), Positioned( left: 15, child: Container( height: 20, width: 25, decoration: BoxDecoration( color: Colors.orange.withOpacity(0.7), borderRadius: BorderRadius.circular(5), ), ), ), Positioned( top: 7, child: Container( height: 110, width: 125, decoration: BoxDecoration( color: Colors.blue, borderRadius: BorderRadius.circular(10)), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Icon(Icons.smartphone, size: 50, color: Colors.black.withOpacity(0.2)), SizedBox(height: 5), Text('Price', style: TextStyle( fontFamily: 'Quicksand', fontSize: 17, fontWeight: FontWeight.bold, color: Colors.white, )) ]))), Positioned( left: 15, child: Container( height: 20, width: 20, decoration: BoxDecoration( color: Colors.orange.withOpacity(1), borderRadius: BorderRadius.only( topLeft: Radius.circular(7.0), bottomRight: Radius.circular(7.0), bottomLeft: Radius.circular(7.0), )), child: Center( child: Text('10', style: TextStyle( fontFamily: 'Quicksand', fontSize: 9, color: Colors.white, ))))) ])))); } }
The flutter tutorial is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application
For more information about Flutter. visit www.fluttertutorial.in