Created
September 21, 2024 07:14
-
-
Save rayliverified/7953dd8ca83b69d07c05cc9b6782bcd7 to your computer and use it in GitHub Desktop.
This file contains 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 const MaterialApp( | |
title: 'MyApp Demo', | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: HeaderTab(), | |
), | |
); | |
} | |
} | |
class HeaderTab extends StatelessWidget { | |
const HeaderTab({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
width: 375, | |
height: 48, | |
clipBehavior: Clip.hardEdge, | |
decoration: BoxDecoration( | |
color: Colors.white, | |
border: Border.all( | |
color: const Color(0xFFDCE2EA), | |
), | |
), | |
child: Stack( | |
clipBehavior: Clip.none, | |
children: [ | |
const Positioned( | |
left: 15, | |
top: 12, | |
child: Text( | |
'Overview', | |
style: TextStyle( | |
color: Color(0xFF0762CB), | |
fontSize: 14, | |
fontWeight: FontWeight.w500, | |
height: 1.4, | |
fontFamily: 'Helvetica Neue', | |
), | |
), | |
), | |
Positioned( | |
left: 16, | |
top: 43, | |
child: Container( | |
width: 60, | |
height: 5, | |
clipBehavior: Clip.hardEdge, | |
decoration: const BoxDecoration( | |
color: Color(0xFF0762CB), | |
borderRadius: BorderRadius.vertical( | |
top: Radius.circular(4), | |
), | |
), | |
), | |
), | |
const Positioned( | |
left: 99, | |
top: 12, | |
child: Text( | |
'Forums', | |
style: TextStyle( | |
color: Color(0xFF606C79), | |
fontSize: 14, | |
fontWeight: FontWeight.w500, | |
height: 1.4, | |
fontFamily: 'Helvetica Neue', | |
), | |
), | |
), | |
const Positioned( | |
left: 172, | |
top: 12, | |
child: Text( | |
'Analysis', | |
style: TextStyle( | |
color: Color(0xFF606C79), | |
fontSize: 14, | |
fontWeight: FontWeight.w500, | |
height: 1.4, | |
fontFamily: 'Helvetica Neue', | |
), | |
), | |
), | |
const Positioned( | |
left: 250, | |
top: 12, | |
child: Text( | |
'Financials', | |
style: TextStyle( | |
color: Color(0xFF606C79), | |
fontSize: 14, | |
fontWeight: FontWeight.w500, | |
height: 1.4, | |
fontFamily: 'Helvetica Neue', | |
), | |
), | |
), | |
const Positioned( | |
left: 341, | |
top: 13, | |
child: SizedBox( | |
width: 37, | |
height: 35, | |
child: Stack( | |
clipBehavior: Clip.none, | |
children: [ | |
Positioned( | |
left: -1, | |
top: -1, | |
child: Text( | |
'News', | |
style: TextStyle( | |
color: Color(0xFF606C79), | |
fontSize: 14, | |
fontWeight: FontWeight.w500, | |
height: 1.4, | |
fontFamily: 'Helvetica Neue', | |
), | |
), | |
) | |
], | |
), | |
), | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment