Please enable JavaScript.
Coggle requires JavaScript to display documents.
((class CryptoWalletScreen extends StatelessWidget {, class MyApp extends…
class CryptoWalletScreen extends StatelessWidget {
const CryptoWalletScreen({super.key});
override
Widget build(BuildContext context) {
return Scaffold(
// The overall background is now a gradient
body: Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFFFDE8D9), // Light peach/orange
Color(0xFFF8F0EC), // Light pink/white
],
),
),
child: SafeArea(
// Wrap the Column in a SingleChildScrollView to prevent overflow
child: SingleChildScrollView(
child: Column(
children: [
26 more items...
],
),
),
),
),
);
}
// Helper function to build action buttons
Widget _buildActionButton(IconData icon, String label, {bool isPrimary = false}) {
return Column(
children: [
Container(
width: 60,
height: 60,
decoration: BoxDecoration(
color: isPrimary ? Colors.black : Colors.white,
borderRadius: BorderRadius.circular(18),
boxShadow: isPrimary
? [
3 more items...
: [],
),
child: Icon(
icon,
color: isPrimary ? Colors.white : Colors.black54,
size: 30,
),
),
const SizedBox(height: 8),
Text(
label,
style: TextStyle(
color: isPrimary ? Colors.black : Colors.black54,
fontSize: 14,
fontWeight: FontWeight.w500,
),
),
],
);
}
// Helper function to build coin icons
Widget _buildCoinIcon(String name, String symbol, Color color, {bool isSelected = false}) {
return Column(
children: [
Container(
width: 50,
height: 50,
decoration: BoxDecoration(
color: isSelected ? color : Colors.grey.shade200,
borderRadius: BorderRadius.circular(15),
boxShadow: isSelected
? [
3 more items...
: [],
),
child: Center(
child: Text(
symbol,
style: TextStyle(
3 more items...
),
),
),
),
const SizedBox(height: 5),
Text(
name,
style: TextStyle(
color: isSelected ? Colors.black : Colors.black54,
fontSize: 12,
fontWeight: FontWeight.w500,
),
),
],
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Crypto Wallet',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
fontFamily: 'Inter', // Assuming Inter font is available or a system default
),
home: const CryptoWalletScreen(),
);
}
void main() {
runApp(const MyApp());
import 'package:flutter/material.dart';
}
}
}