Here is the Flutter Template
Video Tutorial in hindi
Flutter UI Tutorial Part 1
Flutter UI Tutorial Part 2
Plants information app UI with Free code just copy and paste and this flutter template will work for you. Copy and mold It for your own use.
main.dart file
import 'package:flutter/material.dart';
import 'package:helloworld/DetailPage.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return const MaterialApp(
debugShowCheckedModeBanner: false,
home: HomeScreen(),
);
}
}
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: SafeArea(
child: Column(
children: [
Container(
margin:
const EdgeInsets.symmetric(vertical: 20.0, horizontal: 10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const CircleAvatar(
backgroundColor: Colors.black,
child: Text(
"W",
style: TextStyle(color: Colors.white),
),
),
IconButton(
onPressed: () {},
icon: const Icon(
Icons.menu,
size: 30.0,
),
)
],
),
),
Row(
children: [
const Expanded(
child: SizedBox(
height: 350,
child: Center(
child: RotatedBox(
quarterTurns: 3,
child: Text(
"Natural\nIngredients",
style: TextStyle(
fontWeight: FontWeight.w500, fontSize: 28.0),
),
),
),
),
),
Expanded(
flex: 2,
child: SizedBox(
height: 350,
child: Image.network(
"https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-1032600956.jpg",
fit: BoxFit.cover,
),
),
)
],
),
Row(
children: [
Expanded(
child: Container(
height: 300,
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const RotatedBox(
quarterTurns: 3,
child: Text("01",
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 28.0,
color: Colors.white)),
),
Container(
margin: const EdgeInsets.only(top: 20.0),
width: 1,
height: 50.0,
color: Colors.white,
)
],
),
),
),
Expanded(
flex: 2,
child: SizedBox(
height: 300,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Padding(
padding: EdgeInsets.symmetric(horizontal: 30),
child: Text("Info",
style: TextStyle(
color: Colors.black45,
fontSize: 20.0,
)),
),
const Padding(
padding: EdgeInsets.symmetric(
horizontal: 30.0, vertical: 30.0),
child: Text(
"More and More people are option to the herbal lyfe",
style: TextStyle(
color: Colors.black,
fontSize: 16.0,
)),
),
Center(
child: GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (BuildContext context) =>
const DetailPage()));
},
child: Container(
alignment: Alignment.center,
height: 40,
width: 100,
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(16.0),
),
child: const Text(
"Read More",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w500),
),
),
),
)
],
),
),
)
],
),
],
),
),
));
}
}
Copy the code and past it into your main.dart file
DetailPage.dart
import 'package:flutter/material.dart';
class DetailPage extends StatelessWidget {
const DetailPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: Stack(
children: [
Column(
children: [
SizedBox(
height: 450,
child: Image.network("https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-1032600956.jpg",fit: BoxFit.cover,)),
Container(
margin: const EdgeInsets.only(top:100.0),
height: 120,
child: ListView(
scrollDirection: Axis.horizontal,
shrinkWrap: true,
children: [
Container(
margin: const EdgeInsets.all(20.0),
width: 120,
child: ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.network("https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-1032600956.jpg",fit: BoxFit.cover,)),
),
Container(
margin: const EdgeInsets.all(20.0),
width: 120,
child: ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.network("https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-1032600956.jpg",fit: BoxFit.cover,)),
),
Container(
margin: const EdgeInsets.all(20.0),
width: 120,
child: ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.network("https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-1032600956.jpg",fit: BoxFit.cover,)),
),
Container(
margin: const EdgeInsets.all(20.0),
width: 120,
child: ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.network("https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-1032600956.jpg",fit: BoxFit.cover,)),
),
],
),
),
Container(
margin:const EdgeInsets.symmetric(horizontal: 60.0,vertical: 30.0),
child:const Text("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",style: TextStyle(
color: Colors.black38,
letterSpacing: 0.8,
height: 1.5
),),
)
],
),
SafeArea(child: IconButton(onPressed: (){
Navigator.pop(context);
}, icon: const Icon(Icons.arrow_back_rounded))),
const Positioned(
top: 420,
left: 20,
child: Text("New \nNatural",style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 45
),))
],
),
),
);
}
}
For more Flutter tutorials, Tips, Tricks, Free code, Questions, and Error Solving.
Remember FlutterDecode.com