Skip to content

Instantly share code, notes, and snippets.

@oluyoung
Created May 10, 2024 20:01
Show Gist options
  • Save oluyoung/45c7ec88b18a0a5babb20aa00c49fe49 to your computer and use it in GitHub Desktop.
Save oluyoung/45c7ec88b18a0a5babb20aa00c49fe49 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,
theme: ThemeData(
useMaterial3: true,
),
home: ProductDetailPage(),
);
}
}
class ProductDetailPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [
Expanded(
child: Stack(
children: [
Image.network(
'https://placehold.co/600x400?description=Brake%20Pad%20Image',
width: double.infinity,
fit: BoxFit.cover,
),
Positioned(
top: 36,
left: 16,
child: IconButton(
icon: Icon(Icons.arrow_back, color: Colors.white),
onPressed: () {},
),
),
Positioned(
top: 36,
right: 16,
child: IconButton(
icon: Icon(Icons.favorite_border, color: Colors.white),
onPressed: () {},
),
),
Positioned(
top: 36,
right: 56,
child: IconButton(
icon: Icon(Icons.share, color: Colors.white),
onPressed: () {},
),
),
],
),
),
Container(
color: Colors.white,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.all(16.0),
child: Text(
'Brake Pad',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Text(
"What's Included",
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: Colors.black87,
),
),
),
ListTile(
leading: Icon(Icons.circle, color: Colors.green, size: 12),
title: Text('Opening & Fitting of Front Brake Pads'),
),
ListTile(
leading: Icon(Icons.circle, color: Colors.green, size: 12),
title: Text('Front Brake Pads Replacement (Eko Tow)'),
),
ListTile(
leading: Icon(Icons.circle, color: Colors.green, size: 12),
title: Text('Application of Front Brake Calipers'),
),
ListTile(
leading: Icon(Icons.circle, color: Colors.green, size: 12),
title: Text('Front Brake Disc Cleaning'),
),
SizedBox(height: 16),
Center(
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.green,
padding: EdgeInsets.symmetric(horizontal: 32, vertical: 16),
),
onPressed: () {},
child: Text(
'Buy Now (₦12,000.00)',
style: TextStyle(fontSize: 18),
),
),
),
SizedBox(height: 16),
],
),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment