Skip to content

Commit

Permalink
livrable-test
Browse files Browse the repository at this point in the history
  • Loading branch information
c3k4ah committed Apr 28, 2024
1 parent aa072ca commit 06a03cd
Show file tree
Hide file tree
Showing 18 changed files with 622 additions and 947 deletions.
104 changes: 52 additions & 52 deletions lib/app.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:bamboo/foundation/breakpoint.dart';

import 'package:flutter/material.dart';
// ignore: unused_import
import 'package:theme_provider/theme_provider.dart';

import 'core/theme/app_theme.dart';
Expand All @@ -13,56 +12,57 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
ApplicationTheme appTheme = ApplicationTheme(context);
return BambooBreakPoint(
mobile: 576,
tablet: 768,
desktop: 1024,
child: ThemeProvider(
themes: [
AppTheme(
id: 'dark_theme',
description: 'theme de couleur orange',
data: appTheme.darkTheme,
),
AppTheme(
id: 'orange_theme',
description: 'theme de couleur orange',
data: appTheme.orangeTheme,
),
AppTheme(
id: 'blue_theme',
description: 'theme de couleur orange',
data: appTheme.blueTheme,
),
AppTheme(
id: 'green_theme',
description: 'theme de couleur orange',
data: appTheme.greenTheme,
),
AppTheme(
id: 'brown_theme',
description: 'theme de couleur orange',
data: appTheme.brownTheme,
),
AppTheme(
id: 'purple_theme',
description: 'theme de couleur orange',
data: appTheme.purlpleTheme,
),
],
child: ThemeConsumer(
child: Builder(
builder: (themeContext) {
return MaterialApp(
title: 'DOMINICK',
debugShowCheckedModeBanner: false,
theme: ThemeProvider.themeOf(themeContext).data,
home: const HomePage(),
);
},
),
),
),
return MaterialApp(
title: 'DOMINICK',
debugShowCheckedModeBanner: false,
theme: appTheme.darkTheme,
home: const HomePage(),
);
// return ThemeProvider(
// themes: [
// AppTheme(
// id: 'dark_theme',
// description: 'theme de couleur orange',
// data: appTheme.darkTheme,
// ),
// AppTheme(
// id: 'orange_theme',
// description: 'theme de couleur orange',
// data: appTheme.orangeTheme,
// ),
// AppTheme(
// id: 'blue_theme',
// description: 'theme de couleur orange',
// data: appTheme.blueTheme,
// ),
// AppTheme(
// id: 'green_theme',
// description: 'theme de couleur orange',
// data: appTheme.greenTheme,
// ),
// AppTheme(
// id: 'brown_theme',
// description: 'theme de couleur orange',
// data: appTheme.brownTheme,
// ),
// AppTheme(
// id: 'purple_theme',
// description: 'theme de couleur orange',
// data: appTheme.purlpleTheme,
// ),
// ],
// child: ThemeConsumer(
// child: Builder(
// builder: (themeContext) {
// return MaterialApp(
// title: 'DOMINICK',
// debugShowCheckedModeBanner: false,
// theme: ThemeProvider.themeOf(themeContext).data,
// home: const HomePage(),
// );
// },
// ),
// ),
// );
}
}
4 changes: 4 additions & 0 deletions lib/data/experience_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'image_assets.dart';

List<FormationModel> experienceList = [
FormationModel(
isActive: true,
institut: "Freelance",
location: 'Remote',
title: "Développeur Flutter",
Expand Down Expand Up @@ -53,6 +54,7 @@ List<FormationModel> experienceList = [
urlImage: imageAsset.freelance,
),
FormationModel(
isActive: false,
institut: "MyAgency",
urlImage: imageAsset.myAgency,
location: 'Anjanahary',
Expand Down Expand Up @@ -86,6 +88,7 @@ List<FormationModel> experienceList = [
],
),
FormationModel(
isActive: false,
institut: "AreaTech",
urlImage: imageAsset.areaTech,
location: 'Avaradoha',
Expand All @@ -108,6 +111,7 @@ List<FormationModel> experienceList = [
],
),
FormationModel(
isActive: false,
institut: "IBONIA",
urlImage: imageAsset.inonia,
location: 'Ankatso',
Expand Down
10 changes: 6 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// ignore: unused_import
import 'package:device_preview/device_preview.dart';
import 'package:flutter/material.dart';
import 'app.dart';

void main() {
runApp(
DevicePreview(
enabled: false,
builder: (context) => const MyApp(), // Wrap your app
),
// DevicePreview(
// enabled: true,
// builder: (context) => const MyApp(), // Wrap your app
// ),
const MyApp(),
);
}
3 changes: 2 additions & 1 deletion lib/models/formation_model.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
class FormationModel {
final String institut;
final String location;

final bool? isActive;
final String title;
final String date;
final List<ProjectDescriptionModel> projects;
final String urlImage;
FormationModel({
this.isActive,
required this.institut,
required this.location,
required this.title,
Expand Down
109 changes: 23 additions & 86 deletions lib/pages/home/home.dart
Original file line number Diff line number Diff line change
@@ -1,32 +1,15 @@
import 'package:flutter/material.dart';
import 'package:meta_seo/meta_seo.dart';
import 'package:flutter/foundation.dart';

import '../../core/theme/app_color.dart';
import '../../core/utils/sizes/sizes.dart';
import 'parts/footer/footer_v2.dart';
import 'parts/part.dart';
// ignore: unused_import
import 'parts/widgets/app_bar.dart';
import 'parts/widgets/floating_btt.dart';

class HomePage extends StatefulWidget {
class HomePage extends StatelessWidget {
const HomePage({super.key});

@override
State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
final CustomSize _size = CustomSize();
final ScrollController _scrollController = ScrollController();

@override
void initState() {
// setBrowserZoom();
super.initState();
}

static ScrollController scrollController = ScrollController();
@override
Widget build(BuildContext context) {
final themeColor = Theme.of(context).extension<AppColors>()!;
Expand All @@ -37,46 +20,26 @@ class _HomePageState extends State<HomePage> {
mobileLarge: 15,
desktop: 15,
);

return Scaffold(
// appBar: AppBarWidget(
// controller: _scrollController,
// ),
floatingActionButton: FloatingColorBtt(
controller: _scrollController,
),
body: Container(
color: Colors.grey.shade900,
child: Container(
margin:
EdgeInsets.symmetric(horizontal: getNecessaryPadding(context)),
width: _size.width(context),
height: _size.height(context),
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height,
color: themeColor.primaryColor,
child: SingleChildScrollView(
controller: _scrollController,
controller: scrollController,
child: Column(
children: [
const CoverPhotoPart(),
MyProjectPart(
size: Size(
_size.width(context),
_size.height(context),
),
),
const MyProjectPart(),
const SkillsPart(),
MyParcoursPart(
size: Size(
_size.width(context),
_size.height(context),
),
),
const MyParcoursPart(),
const MyBigPart(),
AwardPart(
size: Size(
_size.width(context),
_size.height(context),
),
),
const AwardPart(),
const FooterPartV2(),
Container(
height: ResponsiveSize.number(
Expand Down Expand Up @@ -115,31 +78,25 @@ class _HomePageState extends State<HomePage> {
],
),
),
// MyFooterPart(
// size: Size(
// _size.width(context),
// _size.height(context),
// ),
// ),
],
),
),
),
),
bottomNavigationBar: Container(
height: 50,
color: Colors.deepPurple,
child: Center(
child: Text(
'width: ${MediaQuery.sizeOf(context).width} px | ${getDevice(MediaQuery.sizeOf(context))}',
style: const TextStyle(
color: Colors.white,
fontSize: 16,
fontFamily: 'Poppins',
),
),
),
),
// bottomNavigationBar: Container(
// height: 50,
// color: Colors.deepPurple,
// child: Center(
// child: Text(
// 'width: ${MediaQuery.sizeOf(context).width} px | ${getDevice(MediaQuery.sizeOf(context))}',
// style: const TextStyle(
// color: Colors.white,
// fontSize: 16,
// fontFamily: 'Poppins',
// ),
// ),
// ),
// ),
);
}

Expand Down Expand Up @@ -176,23 +133,3 @@ double getNecessaryPadding(BuildContext context) {
}
return padding;
}

void seoConfig() {
if (kIsWeb) {
MetaSEO meta = MetaSEO();

meta.author(author: 'Dominick Randriamanantena Grégroire');
meta.description(
description:
'Portfolio de Dominick Randriamanantena Grégroire, Développeur Flutter Mobile');
meta.nameContent(
name: 'Dominick Portfolio',
content:
"Dominick Randriamanantena Grégroire un développeur d'application mobile avec Flutter");
meta.ogImage(
ogImage: 'https://avatars.githubusercontent.com/u/73609825?v=4');
meta.keywords(
keywords:
'Flutter, Dart, SEO, Développeur, Dev, Mobile, Dominick, Randriamanantena, Grégroire, Mahanoro, Madagascar, Cekah');
}
}
19 changes: 4 additions & 15 deletions lib/pages/home/parts/awards/awards.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,13 @@ import '../../../../models/time_line_model.dart';
import '../widgets/icon_and_title_widet.dart';
import '../widgets/my_awards_widget.dart';

class AwardPart extends StatefulWidget {
final Size size;
class AwardPart extends StatelessWidget {
// final Size size;
const AwardPart({
super.key,
required this.size,
// required this.size,
});

@override
State<AwardPart> createState() => _AwardPartState();
}

class _AwardPartState extends State<AwardPart> {
@override
void initState() {
super.initState();
}

@override
Widget build(BuildContext context) {
final themeColor = Theme.of(context).extension<AppColors>()!;
Expand Down Expand Up @@ -65,8 +55,7 @@ class _AwardPartState extends State<AwardPart> {
(index) {
TimeLineContentModel palmares = palmaresList[index];
return MyAwardsCarSwipeWidget(
showShadow: false,
size: widget.size,
size: MediaQuery.sizeOf(context),
palmares: palmares,
id: index,
);
Expand Down
Loading

0 comments on commit 06a03cd

Please sign in to comment.