Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@ import 'package:google_fonts/google_fonts.dart';
void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
scaffoldBackgroundColor: bgColor,
useMaterial3: true,
textTheme: GoogleFonts.openSansTextTheme(Theme.of(context).textTheme)
.apply(bodyColor: Colors.white,)
.copyWith(
bodyText1: const TextStyle(color: bodyTextColor),
bodyText2: const TextStyle(color: bodyTextColor),
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
scaffoldBackgroundColor: bgColor,
// useMaterial3: true,
textTheme: GoogleFonts.openSansTextTheme(Theme.of(context).textTheme)
.apply(
bodyColor: Colors.white,
)
.copyWith(
bodyLarge: const TextStyle(color: bodyTextColor),
bodyMedium: const TextStyle(color: bodyTextColor),
),
),
),

home: SplashView()
);
home: SplashView());
}
}


92 changes: 57 additions & 35 deletions lib/view/certifications/components/certificates_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,51 +16,64 @@ class CertificateStack extends StatelessWidget {
onHover: (value) {
controller.onHover(index, value);
},
onTap: () {
},
onTap: () {},
borderRadius: BorderRadius.circular(30),
child: AnimatedContainer(
padding: const EdgeInsets.all(defaultPadding),
height: double.infinity,
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30),
color: bgColor),
borderRadius: BorderRadius.circular(30), color: bgColor),
duration: const Duration(milliseconds: 500),
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
certificateList[index].name,
style: Theme.of(context)
.textTheme
.subtitle2!
.copyWith(
color: Colors.white,
fontWeight: FontWeight.bold),
style: Theme.of(context).textTheme.titleSmall!.copyWith(
color: Colors.white, fontWeight: FontWeight.bold),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
const SizedBox(height: defaultPadding,),
const SizedBox(
height: defaultPadding,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(certificateList[index].organization,style: const TextStyle(color: Colors.amber),),
Text(certificateList[index].date,style: const TextStyle(color: Colors.grey,fontSize: 12),),
Text(
certificateList[index].organization,
style: const TextStyle(color: Colors.amber),
),
Text(
certificateList[index].date,
style: const TextStyle(color: Colors.grey, fontSize: 12),
),
],
),
const SizedBox(height: defaultPadding/2,),
const SizedBox(
height: defaultPadding / 2,
),
Text.rich(
maxLines: 1,
TextSpan(
text: 'Skills : ',style: const TextStyle(color: Colors.white,),
text: 'Skills : ',
style: const TextStyle(
color: Colors.white,
),
children: [
TextSpan(
text: certificateList[index].skills,style: const TextStyle(color: Colors.grey,overflow: TextOverflow.ellipsis),)
]
),),
const SizedBox(height: defaultPadding,),
text: certificateList[index].skills,
style: const TextStyle(
color: Colors.grey,
overflow: TextOverflow.ellipsis),
)
]),
),
const SizedBox(
height: defaultPadding,
),
InkWell(
onTap: () {
launchUrl(Uri.parse(certificateList[index].credential));
Expand All @@ -70,33 +83,42 @@ class CertificateStack extends StatelessWidget {
width: 150,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30),
gradient: LinearGradient(
colors: [
Colors.pink,
Colors.blue.shade900,
]
),
boxShadow:const [
BoxShadow(color: Colors.blue,offset: Offset(0, -1),blurRadius: 5),
BoxShadow(color: Colors.red,offset: Offset(0, 1),blurRadius: 5),
]
),
gradient: LinearGradient(colors: [
Colors.pink,
Colors.blue.shade900,
]),
boxShadow: const [
BoxShadow(
color: Colors.blue,
offset: Offset(0, -1),
blurRadius: 5),
BoxShadow(
color: Colors.red,
offset: Offset(0, 1),
blurRadius: 5),
]),
child: const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Credentials',style: TextStyle(color: Colors.white,fontSize: 10),),
SizedBox(width: 5,),
Text(
'Credentials',
style: TextStyle(color: Colors.white, fontSize: 10),
),
SizedBox(
width: 5,
),
Icon(
CupertinoIcons.arrow_turn_up_right,color: Colors.white,size: 10,
CupertinoIcons.arrow_turn_up_right,
color: Colors.white,
size: 10,
)
],
),
),
),

],
),
)),
);
}
}
}
Loading