104 lines
4.8 KiB
Dart
104 lines
4.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:freekake/components/collection_container.dart';
|
|
import 'package:freekake/screen/collection/character_view.dart';
|
|
import 'package:freekake/screen/collection/skin_view.dart';
|
|
|
|
class CollectionSkinScreen extends StatefulWidget {
|
|
const CollectionSkinScreen({super.key});
|
|
|
|
@override
|
|
State<CollectionSkinScreen> createState() => _CollectionSkinScreenState();
|
|
}
|
|
|
|
class _CollectionSkinScreenState extends State<CollectionSkinScreen> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
// scrollDirection: Axis.horizontal,
|
|
height: MediaQuery.of(context).size.height,
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(height: 80),
|
|
Padding(
|
|
padding: EdgeInsets.only(top: 40, left: 20, right: 20, bottom: 20),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
// Text("Luffy", style: TextStyle(color: Colors.black)),
|
|
// Divider(height: 10),
|
|
// SingleChildScrollView(
|
|
// scrollDirection: Axis.horizontal,
|
|
// child: Row(
|
|
// spacing: 10, // Horizontal spacing between the containers
|
|
// children: [
|
|
// CollectionContainer(
|
|
// label: "Luffy Kimono",
|
|
// imagesrc: 'assets/images/luffy-kimono.png',
|
|
// colorContiner: Color.fromRGBO(12, 199, 215, 1),
|
|
// onTapAc: () => {},
|
|
// ),
|
|
|
|
// CollectionContainer(
|
|
// label: "Luffy (Default)",
|
|
// imagesrc: 'assets/images/luffy.png',
|
|
// colorContiner: Color.fromRGBO(12, 199, 215, 1),
|
|
// onTapAc: () => {},
|
|
// ),
|
|
// CollectionContainer(
|
|
// label: "Luffy King",
|
|
// imagesrc: 'assets/images/luffy-king.png',
|
|
// colorContiner: Color.fromRGBO(12, 199, 215, 1),
|
|
// onTapAc: () => {},
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// Divider(height: 20, color: Colors.transparent),
|
|
Text("Cepot", style: TextStyle(color: Colors.black)),
|
|
Divider(height: 10),
|
|
SingleChildScrollView(
|
|
scrollDirection: Axis.horizontal,
|
|
child: Row(
|
|
spacing: 10,
|
|
children: [
|
|
// CollectionContainer(
|
|
// label: "Oni Chan (Default)",
|
|
// imagesrc: 'assets/images/klipartz.png',
|
|
// onTapAc: () => {},
|
|
// ),
|
|
CollectionContainer(
|
|
label: "Cepot (Default)",
|
|
imagesrc: 'assets/images/cepott.png',
|
|
colorContiner: Color.fromRGBO(237, 207, 100, 1.0),
|
|
onTapAc:
|
|
() => {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(
|
|
builder:
|
|
(context) => SkinView(
|
|
title: "Tentang Skin",
|
|
imagePath: 'assets/images/cepott.png',
|
|
skinName: "Pangsi",
|
|
skinOrigin: "Jawa Barat",
|
|
content:
|
|
"""Pakaian Cepot juga punya makna, lho! Ia selalu memakai baju pangsi hitam panjang yang sederhana, melambangkan kesederhanaan dan kerendahan hati. \nBaju ini longgar dan nyaman, cocok untuk Cepot yang suka bergerak bebas dan menghibur orang-orang di sekitarnya. \nSarung kotak-kotak yang dililit di pinggang bukan hanya pelengkap, tapi juga simbol budaya rakyat biasa yang tetap rapi dan terhormat. \nDan jangan lupa iket batik di kepalanya—itu bukan cuma hiasan, tapi lambang kebanggaan dan identitas sebagai orang Sunda. Lewat pakaiannya, Cepot mengajarkan kita bahwa kita tidak perlu pakaian mahal untuk terlihat hebat. Yang penting adalah sikap baik, rasa hormat pada budaya, dan keberanian untuk jadi diri sendiri!
|
|
""",
|
|
),
|
|
),
|
|
),
|
|
},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|