Skip to content

Commit

Permalink
Bug Fixes & General Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
PLGuerraDesigns committed Aug 10, 2024
1 parent 5ab66f3 commit cd1dde8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.5.5

- FIX: Fixed issue with router routing to the wrong page when the theme is toggled when navigating back from a different page. (Temporary fix for when the route is popped.)
- FIX: Fixed spacing issue in the home header banner.
- REVISED: Updated the home header banner subtitle to cycle through a list rather than just two.

## 2.5.4

- FIX: Fixed issue with the local video player restarting when the media browser is opened or closed.
Expand Down
4 changes: 2 additions & 2 deletions assets/json/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,9 @@
"source": "thumbnail.webp"
},
{
"type": "localVideo",
"type": "youTubeVideo",
"caption": "F1 Sim Engineer Demo",
"source": "video_1.mp4"
"source": "4ROWmlwLq6M"
}
],
"externalLinks": [
Expand Down
9 changes: 6 additions & 3 deletions lib/common/strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ class Strings {
static const String currentLocation = 'VA, USA';
static const String lastUpdated = 'Updated AUG 2024';

static const List<String> headerSubtitles = <String>[
'Software Engineer • Innovator • Technologist',
'Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. ~Archimedes',
'Men for Others'
];

static const String appName = 'PLG Portfolio';
static const String name = 'Pablo L. Guerra';
static const String subtitle =
'Software Engineer • Innovator • Technologist';
static const String motto = 'Men for Others';
static const String explore = 'Explore';
static const String expand = 'Expand';
static const String collapse = 'Collapse';
Expand Down
5 changes: 5 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'common/routing/app_router.dart';
import 'common/routing/routes.dart';
import 'common/strings.dart';
import 'common/theming/theme_notifier.dart';
import 'models/app_state.dart';
Expand Down Expand Up @@ -31,6 +32,10 @@ class _PortfolioAppState extends State<PortfolioApp> {

// Listen to theme changes and rebuild the application.
themeNotifier.addListener(() {
// ! This should be handled in AppRouter but redirect isn't being called
// ! on pop, so we're handling it here until it's fixed in GoRouter.
_appState.currentRoute = Routes.home;

setState(() {});
});
}
Expand Down
38 changes: 20 additions & 18 deletions lib/pages/home/widgets/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,25 @@ class Header extends StatelessWidget {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
DefaultTextStyle(
style: compact
? Theme.of(context).textTheme.labelSmall!
: Theme.of(context).textTheme.titleMedium!,
textAlign: TextAlign.left,
child: AnimatedTextKit(
repeatForever: true,
pause: const Duration(milliseconds: 250),
animatedTexts: <AnimatedText>[
RotateAnimatedText(
Strings.subtitle,
duration: const Duration(seconds: 7),
),
RotateAnimatedText(
Strings.motto,
duration: const Duration(seconds: 7),
),
],
Flexible(
child: DefaultTextStyle(
style: compact
? Theme.of(context).textTheme.labelSmall!
: Theme.of(context).textTheme.titleMedium!,
maxLines: 2,
child: AnimatedTextKit(
repeatForever: true,
pause: const Duration(milliseconds: 250),
animatedTexts: Strings.headerSubtitles.map<AnimatedText>(
(String text) {
return RotateAnimatedText(
text,
alignment: Alignment.centerLeft,
duration: const Duration(seconds: 7),
);
},
).toList(),
),
),
),
SizedBox(
Expand Down Expand Up @@ -107,6 +108,7 @@ class Header extends StatelessWidget {
child: Row(
children: <Widget>[
_profilePicture(context),
const SizedBox(width: 12.0),
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down

0 comments on commit cd1dde8

Please sign in to comment.