Skip to content

Instantly share code, notes, and snippets.

@jwson-automation
Created May 5, 2024 04:21
Show Gist options
  • Save jwson-automation/5f920038cc6fe7a4f740bc38d5501325 to your computer and use it in GitHub Desktop.
Save jwson-automation/5f920038cc6fe7a4f740bc38d5501325 to your computer and use it in GitHub Desktop.
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Product Details'),
),
body: ListView(
children: [
Image.network(
'https://corsproxy.io/?https%3A%2F%2Foaidalleapiprodscus.blob.core.windows.net%2Fprivate%2Forg-TUBHLKYl2lBqM1b7iE99XgMQ%2Fuser-UjOypK7HRZS7bCpwDOO1UgLB%2Fimg-R15msz0FxPC2QTBHsPcbKEp3.png%3Fst%3D2024-05-05T03%253A21%253A17Z%26se%3D2024-05-05T05%253A21%253A17Z%26sp%3Dr%26sv%3D2021-08-06%26sr%3Db%26rscd%3Dinline%26rsct%3Dimage%2Fpng%26skoid%3D6aaadede-4fb3-4698-a8f6-684d7786b067%26sktid%3Da48cca56-e6da-484e-a814-9c849652bcb3%26skt%3D2024-05-04T21%253A18%253A07Z%26ske%3D2024-05-05T21%253A18%253A07Z%26sks%3Db%26skv%3D2021-08-06%26sig%3DpY%2FO1Nx021QJennv%2F%252BqTiW6rjvavvIsZS%252BAeqgVOiA8%253D',
fit: BoxFit.cover,
),
Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'[Farm Fresh] Sweet Potatoes 5kg Box',
style: TextStyle(
fontSize: 24.0,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 8.0),
Text(
'Freshly picked sweet potatoes directly from the farm',
style: TextStyle(
fontSize: 16.0,
color: Colors.grey[600],
),
),
SizedBox(height: 16.0),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'32,910₩',
style: TextStyle(
fontSize: 28.0,
color: Colors.red,
fontWeight: FontWeight.bold,
),
),
Text(
'73% off 121,900₩',
style: TextStyle(
fontSize: 16.0,
color: Colors.grey,
decoration: TextDecoration.lineThrough,
),
),
],
),
SizedBox(height: 8.0),
Text(
'14,590₩ shipping fee included',
style: TextStyle(
fontSize: 16.0,
color: Colors.blue,
),
),
SizedBox(height: 16.0),
Divider(),
SizedBox(height: 16.0),
Text(
'Product Options',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 8.0),
ListTile(
title: Text('Sweet Potatoes (5kg) x 1'),
trailing: Icon(Icons.keyboard_arrow_right),
),
SizedBox(height: 16.0),
Divider(),
SizedBox(height: 16.0),
Text(
'Customer Reviews (6,661)',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 8.0),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Rating: 4.5/5',
style: TextStyle(
fontSize: 18.0,
color: Colors.orange,
),
),
Text(
'74% positive (2,006)',
style: TextStyle(
fontSize: 18.0,
color: Colors.green,
),
),
],
),
SizedBox(height: 16.0),
Divider(),
SizedBox(height: 16.0),
Text(
'Similar Products',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 8.0),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: List.generate(5, (index) {
return Padding(
padding: const EdgeInsets.only(right: 8.0),
child: Column(
children: [
Image.network(
'https://corsproxy.io/?https%3A%2F%2Foaidalleapiprodscus.blob.core.windows.net%2Fprivate%2Forg-TUBHLKYl2lBqM1b7iE99XgMQ%2Fuser-UjOypK7HRZS7bCpwDOO1UgLB%2Fimg-I05WczrurCsrmeHPK3VMgmJJ.png%3Fst%3D2024-05-05T03%253A21%253A18Z%26se%3D2024-05-05T05%253A21%253A18Z%26sp%3Dr%26sv%3D2021-08-06%26sr%3Db%26rscd%3Dinline%26rsct%3Dimage%2Fpng%26skoid%3D6aaadede-4fb3-4698-a8f6-684d7786b067%26sktid%3Da48cca56-e6da-484e-a814-9c849652bcb3%26skt%3D2024-05-04T21%253A30%253A54Z%26ske%3D2024-05-05T21%253A30%253A54Z%26sks%3Db%26skv%3D2021-08-06%26sig%3DwqP0OUFIoyeYb8rA2AtLuy3geElnaeBYwiuNGkAqXj8%253D',
width: 100,
height: 100,
fit: BoxFit.cover,
),
SizedBox(height: 4.0),
Text(
'Sweet Potatoes 5kg',
style: TextStyle(
fontSize: 16.0,
),
),
SizedBox(height: 4.0),
Text(
'26,900₩',
style: TextStyle(
fontSize: 16.0,
color: Colors.red,
),
),
],
),
);
}),
),
),
],
),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment