Skip to content

Commit

Permalink
New version of my portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenicolais committed Sep 12, 2024
1 parent b1fc4fe commit 025175f
Show file tree
Hide file tree
Showing 130 changed files with 2,455 additions and 6,748 deletions.
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (flutterVersionName == null) {
}

android {
namespace "com.denicks21.ndenicolais"
namespace "com.ndn21.myportfolio"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand All @@ -42,7 +42,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.denicks21.ndenicolais"
applicationId "com.ndn21.myportfolio"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
Expand All @@ -62,7 +62,7 @@ android {
}

flutter {
source 'C:/Users/ndenicolais/source/repos/Android/Flutter/myGithub'
source 'C:/Users/ndenicolais/source/repos/Android/Flutter/myportfolio'
}

dependencies {}
25 changes: 5 additions & 20 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:label="ndenicolais"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<application android:label="My Portfolio" android:name="${applicationName}" android:icon="@mipmap/ic_launcher">
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data android:name="flutterEmbedding" android:value="2" />
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.denicks21.ndenicolais
package com.ndn21.myportfolio

import io.flutter.embedding.android.FlutterActivity

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.7.10'
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
Expand Down
Binary file added assets/images/development/android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/development/compose.png
Binary file not shown.
Binary file added assets/images/development/figma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/development/firebase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/development/java.png
Binary file not shown.
Binary file removed assets/images/development/mongodb.png
Binary file not shown.
Binary file removed assets/images/development/mysql.png
Binary file not shown.
Binary file added assets/images/development/nodejs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/development/sqlite.png
Binary file not shown.
Binary file modified assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/myPhoto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_contact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_countdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_darkmode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_egg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_language.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_onboarding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/projects/compose/compose_photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified assets/images/projects/compose/compose_recorder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_scanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added assets/images/projects/compose/compose_st.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/projects/compose/compose_stopwatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/projects/flutter/logo_shox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/projects/react/react_clock.png
Diff not rendered.
Binary file added assets/images/projects/react/react_password.png
Diff not rendered.
Binary file modified assets/images/projects/react/react_pwa.png
Binary file added assets/images/projects/react/react_qr.png
Diff not rendered.
Binary file modified assets/images/projects/xml/xml_animations.png
Binary file removed assets/images/projects/xml/xml_dark_mode.png
Diff not rendered.
Binary file added assets/images/projects/xml/xml_darkmode.png
Binary file added assets/images/projects/xml/xml_folder.png
Binary file removed assets/images/projects/xml/xml_folder_creation.png
Diff not rendered.
Binary file added assets/images/projects/xml/xml_language.png
Binary file added assets/images/projects/xml/xml_logo.png
Binary file modified assets/images/projects/xml/xml_onboarding.png
Binary file modified assets/images/projects/xml/xml_recorder.png
Binary file modified assets/images/projects/xml/xml_sensors.png
Binary file removed assets/images/projects/xml/xml_speech_to_text.png
Diff not rendered.
Binary file removed assets/images/projects/xml/xml_sql_lite.png
Diff not rendered.
Binary file added assets/images/projects/xml/xml_sqlite.png
Binary file added assets/images/projects/xml/xml_stt.png
Binary file removed assets/images/projects/xml/xml_switch_language.png
Diff not rendered.
Binary file added assets/images/projects/xml/xml_toast.png
Binary file removed assets/images/projects/xml/xml_toast_message.png
Diff not rendered.
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.myPortfolio;
PRODUCT_BUNDLE_IDENTIFIER = com.ndn21.myportfolio;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -384,7 +384,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.myPortfolio.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = com.ndn21.myportfolio.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -402,7 +402,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.myPortfolio.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = com.ndn21.myportfolio.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand All @@ -418,7 +418,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.myPortfolio.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = com.ndn21.myportfolio.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand Down Expand Up @@ -545,7 +545,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.myPortfolio;
PRODUCT_BUNDLE_IDENTIFIER = com.ndn21.myportfolio;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -567,7 +567,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.myPortfolio;
PRODUCT_BUNDLE_IDENTIFIER = com.ndn21.myportfolio;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
36 changes: 20 additions & 16 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:ndenicolais/routes.dart';
import 'package:myportfolio/pages/intro_page.dart';
import 'package:myportfolio/theme/app_theme.dart';
import 'package:provider/provider.dart';
import 'package:ndenicolais/providers/theme_notifier.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:myportfolio/theme/theme_notifier.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand All @@ -14,15 +14,9 @@ void main() async {
DeviceOrientation.portraitDown,
]);

// Carica le preferenze salvate
final prefs = await SharedPreferences.getInstance();
final isDarkMode = prefs.getBool('isDarkMode') ?? false;

runApp(
ChangeNotifierProvider(
create: (context) => ThemeNotifier(
isDarkMode ? ThemeNotifier.darkTheme : ThemeNotifier.lightTheme,
),
create: (_) => ThemeNotifier(AppTheme.lightTheme(), false),
child: const MyApp(),
),
);
Expand All @@ -34,14 +28,24 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Consumer<ThemeNotifier>(
builder: (context, themeNotifier, _) {
builder: (context, themeNotifier, child) {
final brightness = MediaQuery.of(context).platformBrightness;

if (!themeNotifier.isManualTheme) {
if (brightness == Brightness.dark && !themeNotifier.isDarkMode) {
themeNotifier.setDarkTheme();
} else if (brightness == Brightness.light &&
themeNotifier.isDarkMode) {
themeNotifier.setLightTheme();
}
themeNotifier.resetManualTheme();
}

return MaterialApp(
debugShowCheckedModeBanner: false,
title: "Nicola De Nicolais",
theme: themeNotifier.getTheme(),
darkTheme: themeNotifier.getDarkTheme(),
themeMode: themeNotifier.getThemeMode(),
initialRoute: Routes.intro,
routes: Routes.getRoutes(),
theme: themeNotifier.currentTheme,
home: const IntroPage(),
);
},
);
Expand Down
13 changes: 0 additions & 13 deletions lib/models/card_model.dart

This file was deleted.

Loading

0 comments on commit 025175f

Please sign in to comment.