Created
August 29, 2024 23:08
-
-
Save Lxxyx/5fded3c984447987a33212631d92a38c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Pricing Page', | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
colorSchemeSeed: Colors.blue, | |
), | |
home: const PricingPage(), | |
); | |
} | |
} | |
class PricingPage extends StatelessWidget { | |
const PricingPage({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: const Text('Pricing Page'), | |
), | |
body: Padding( | |
padding: const EdgeInsets.all(20.0), | |
child: Column( | |
children: [ | |
ExpansionTile( | |
title: const Text('Basic'), | |
leading: const Icon(Icons.arrow_right), | |
children: [ | |
const ListTile( | |
title: Text('Monthly: \$9.99'), | |
subtitle: Text('Annual: \$99.99'), | |
), | |
const ListTile( | |
title: Text('Features:'), | |
subtitle: Text('1 GB Storage, 50 Users'), | |
), | |
ElevatedButton( | |
onPressed: () {}, | |
child: const Text('Sign Up'), | |
), | |
], | |
), | |
const SizedBox(height: 10), | |
ExpansionTile( | |
title: const Text('Premium'), | |
leading: const Icon(Icons.arrow_right), | |
children: [ | |
const ListTile( | |
title: Text('Monthly: \$19.99'), | |
subtitle: Text('Annual: \$199.99'), | |
), | |
const ListTile( | |
title: Text('Features:'), | |
subtitle: Text('10 GB Storage, 100 Users'), | |
), | |
ElevatedButton( | |
onPressed: () {}, | |
child: const Text('Sign Up'), | |
), | |
], | |
), | |
const SizedBox(height: 10), | |
ExpansionTile( | |
title: const Text('Enterprise'), | |
leading: const Icon(Icons.arrow_right), | |
children: [ | |
const ListTile( | |
title: Text('Monthly: \$49.99'), | |
subtitle: Text('Annual: \$499.99'), | |
), | |
const ListTile( | |
title: Text('Features:'), | |
subtitle: Text('50 GB Storage, 500 Users'), | |
), | |
ElevatedButton( | |
onPressed: () {}, | |
child: const Text('Sign Up'), | |
), | |
], | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment