Commit 517cf4ad authored by Dio Maulana's avatar Dio Maulana

belajar

parent d29370ec
import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart';
class MainPages extends StatefulWidget {
......@@ -79,6 +78,185 @@ class _MainPagesState extends State<MainPages> {
// ),
// ),
// )
Container(
margin: EdgeInsets.fromLTRB(30, 10, 10, 0),
height: 300,
child: ListView(
scrollDirection: Axis.horizontal,
children: [
Container(
margin: EdgeInsets.fromLTRB(5, 10, 10, 0),
child: Column(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image(
image: NetworkImage(
"https://e1.pngegg.com/pngimages/513/361/png-clipart-render-naruto-naruto-uzumaki-illustration.png"),
fit: BoxFit.cover,
width: 100,
height: 200,
),
),
SizedBox(
height: 10,
),
Text("Naruto Shippuden", style: TextStyle(fontSize: 12, color: Colors.white, fontWeight: FontWeight.w700),),
SizedBox(
height: 5,
),
Row(
children: [
Text("3.5", maxLines: 1,textAlign: TextAlign.center, style: TextStyle(color: Colors.grey, fontSize: 12, fontWeight: FontWeight.w500),),
SizedBox(
width: 5,
),
Icon(Icons.star, color: Colors.yellow, size: 14,)
],
)
],
),
),
Container(
margin: EdgeInsets.fromLTRB(5, 10, 10, 0),
child: Column(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image(
image: NetworkImage(
"https://e1.pngegg.com/pngimages/513/361/png-clipart-render-naruto-naruto-uzumaki-illustration.png"),
fit: BoxFit.cover,
width: 100,
height: 200,
),
),
SizedBox(
height: 10,
),
Text("Naruto Shippuden", style: TextStyle(fontSize: 12, color: Colors.white, fontWeight: FontWeight.w700),),
SizedBox(
height: 5,
),
Row(
children: [
Text("3.5", maxLines: 1,textAlign: TextAlign.center, style: TextStyle(color: Colors.grey, fontSize: 12, fontWeight: FontWeight.w500),),
SizedBox(
width: 5,
),
Icon(Icons.star, color: Colors.yellow, size: 14,)
],
)
],
),
),
Container(
margin: EdgeInsets.fromLTRB(5, 10, 10, 0),
child: Column(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image(
image: NetworkImage(
"https://e1.pngegg.com/pngimages/513/361/png-clipart-render-naruto-naruto-uzumaki-illustration.png"),
fit: BoxFit.cover,
width: 100,
height: 200,
),
),
SizedBox(
height: 10,
),
Text("Naruto Shippuden", style: TextStyle(fontSize: 12, color: Colors.white, fontWeight: FontWeight.w700),),
SizedBox(
height: 5,
),
Row(
children: [
Text("3.5", maxLines: 1,textAlign: TextAlign.center, style: TextStyle(color: Colors.grey, fontSize: 12, fontWeight: FontWeight.w500),),
SizedBox(
width: 5,
),
Icon(Icons.star, color: Colors.yellow, size: 14,)
],
)
],
),
),
Container(
margin: EdgeInsets.fromLTRB(5, 10, 10, 0),
child: Column(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image(
image: NetworkImage(
"https://e1.pngegg.com/pngimages/513/361/png-clipart-render-naruto-naruto-uzumaki-illustration.png"),
fit: BoxFit.cover,
width: 100,
height: 200,
),
),
SizedBox(
height: 10,
),
Text("Naruto Shippuden", style: TextStyle(fontSize: 12, color: Colors.white, fontWeight: FontWeight.w700),),
SizedBox(
height: 5,
),
Row(
children: [
Text("3.5", maxLines: 1,textAlign: TextAlign.center, style: TextStyle(color: Colors.grey, fontSize: 12, fontWeight: FontWeight.w500),),
SizedBox(
width: 5,
),
Icon(Icons.star, color: Colors.yellow, size: 14,)
],
)
],
),
),
Container(
margin: EdgeInsets.fromLTRB(5, 10, 10, 0),
child: Column(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image(
image: NetworkImage(
"https://e1.pngegg.com/pngimages/513/361/png-clipart-render-naruto-naruto-uzumaki-illustration.png"),
fit: BoxFit.cover,
width: 100,
height: 200,
),
),
SizedBox(
height: 10,
),
Text("Naruto Shippuden", style: TextStyle(fontSize: 12, color: Colors.white, fontWeight: FontWeight.w700),),
SizedBox(
height: 5,
),
Row(
children: [
Text("3.5", maxLines: 1,textAlign: TextAlign.center, style: TextStyle(color: Colors.grey, fontSize: 12, fontWeight: FontWeight.w500),),
SizedBox(
width: 5,
),
Icon(Icons.star, color: Colors.yellow, size: 14,)
],
)
],
),
),
],
),
),
],
)
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment