Skip to content

Instantly share code, notes, and snippets.

@PrasathRavichandran
Created May 24, 2022 09:22
Show Gist options
  • Save PrasathRavichandran/85436b6d6c5f4d4039bbc38775232cda to your computer and use it in GitHub Desktop.
Save PrasathRavichandran/85436b6d6c5f4d4039bbc38775232cda to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:ionicons/ionicons.dart';
import '../themes/constants.dart';
class CustomCard extends StatelessWidget {
final String name;
const CustomCard({Key? key, required this.name}) : super(key: key);
@override
Widget build(BuildContext context) {
return SizedBox(
height: 400,
child: Card(
elevation: 8,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(34.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
name,
style: TextStyle(
color: primaryTextColor,
fontWeight: FontWeight.w900,
fontFamily: 'Avenir',
fontSize: 50),
textAlign: TextAlign.left,
),
Text(
"Solar System",
style: TextStyle(
color: primaryTextColor,
fontWeight: FontWeight.w400,
fontFamily: 'Avenir',
fontSize: 28),
textAlign: TextAlign.left,
),
const SizedBox(
height: 24,
),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
"Know More",
style: TextStyle(
color: secondaryTextColor,
fontWeight: FontWeight.w600,
fontFamily: 'Avenir',
fontSize: 20),
textAlign: TextAlign.left,
),
Padding(
padding: const EdgeInsets.only(left: 5.0),
child: Icon(
Ionicons.arrow_forward,
color: secondaryTextColor,
size: 20,
),
)
],
)
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment