Skip to content

Instantly share code, notes, and snippets.

@PrasathRavichandran
Created May 24, 2022 09:43
Show Gist options
  • Save PrasathRavichandran/02d79f618a600166292c92633b5fcc65 to your computer and use it in GitHub Desktop.
Save PrasathRavichandran/02d79f618a600166292c92633b5fcc65 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:ionicons/ionicons.dart';
import '../themes/constants.dart';
class HeaderWidget extends StatelessWidget {
const HeaderWidget({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(26.0),
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Text(
"Explore",
style: TextStyle(
color: titleTextColor,
fontSize: 40,
fontWeight: FontWeight.w900,
fontFamily: 'Avenir'),
textAlign: TextAlign.left,
),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
"Solar System",
style: TextStyle(
color: titleTextColor,
fontSize: 22,
fontWeight: FontWeight.w400,
fontFamily: 'Avenir'),
textAlign: TextAlign.left,
),
SizedBox(
width: 40,
child: Icon(
Ionicons.chevron_down,
color: secondaryTextColor,
),
)
],
)
]),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment