Skip to content

Commit 793728f

Browse files
committed
general website updates since im in college now
Signed-off-by: Tejas Mehta <[email protected]>
1 parent cf74d51 commit 793728f

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

lib/routing/portfolio_route_controller_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class PortfolioRouteControllerWidgetState extends State<PortfolioRouteController
2929
/// A method to update the current route for the website and updates the called route
3030
void updateRoute(PortfolioRoutePath path) {
3131
widget.delegate.setNewRoutePath(path);
32-
WidgetsBinding.instance?.addPostFrameCallback((_) {
32+
WidgetsBinding.instance.addPostFrameCallback((_) {
3333
setState(() {
3434
_route = path.path;
3535
});

lib/ui/about.dart

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'package:flutter/cupertino.dart';
88
import 'package:flutter/gestures.dart';
99
import 'package:flutter/material.dart';
1010
import 'package:flutter/services.dart';
11-
import 'package:portfolio/util/common_methods.dart';
1211
import 'package:portfolio/widgets/bullet_list_text.dart';
1312
// ignore: avoid_web_libraries_in_flutter
1413
import 'dart:html' as html;
@@ -34,10 +33,10 @@ class AboutState extends State<About> with WidgetsBindingObserver {
3433
@override
3534
void initState() {
3635
super.initState();
37-
WidgetsBinding.instance?.addPostFrameCallback((_){
36+
WidgetsBinding.instance.addPostFrameCallback((_){
3837
RouteController.of(context)?.updateRoute("about");
3938
});
40-
WidgetsBinding.instance?.addObserver(this);
39+
WidgetsBinding.instance.addObserver(this);
4140

4241
}
4342

@@ -46,15 +45,15 @@ class AboutState extends State<About> with WidgetsBindingObserver {
4645
///Currently only removes the observer set in initState for the light/dark theme changes
4746
@override
4847
void dispose() {
49-
WidgetsBinding.instance?.removeObserver(this);
48+
WidgetsBinding.instance.removeObserver(this);
5049
super.dispose();
5150
}
5251

5352
///didChangePlatformBrightness method
5453
///Only changes the listener's state to the theme allowing to change the theme while user is on the screen
5554
@override
5655
void didChangePlatformBrightness() {
57-
WidgetsBinding.instance?.window.platformBrightness;
56+
WidgetsBinding.instance.window.platformBrightness;
5857
}
5958

6059
@override
@@ -84,23 +83,28 @@ class AboutState extends State<About> with WidgetsBindingObserver {
8483
Text("About", style: Theme.of(context).textTheme.headline4,),
8584
Padding(padding: const EdgeInsets.all(5)),
8685
Text("Hello! I'm a Software Developer${makeStatement()} who loves experimenting with various new languages, technologies, and tools. "
87-
"I'm currently a high school student in New Jersey looking to expand my horizon of Computer Science knowledge. Aside from development, "
88-
"I love hiking outdoors, playing video games and watching new TV shows and movies! If you didn't know, I'm also a huge Star Wars fan!"),
86+
"I'm currently a student at Georgia Tech looking to expand my horizon of Computer Science knowledge. Aside from development, "
87+
"I love hiking outdoors, experimenting with coffee-making and watching new TV shows and movies! If you didn't know, I'm also a huge Star Wars fan!"),
8988
Padding(padding: const EdgeInsets.all(10)),
9089
Text("Experience", style: Theme.of(context).textTheme.headline4,),
9190
Padding(padding: const EdgeInsets.all(5)),
91+
Text("Rust:"),
92+
BulletListText("About 2 years, started writing code with Rust in 2020"),
93+
BulletListText("Created an open source package for HOTP & TOTP generation and validation"),
94+
BulletListText("Re-wrote cClip's Direct Transfer implementation in Rust, improving performance nearly 10x and dropping errors 20% (threading + safety)"),
95+
Padding(padding: const EdgeInsets.all(5)),
9296
Text("Flutter & Dart:"),
93-
BulletListText("Over 2 years, started writing code with Flutter & Dart in 2018 during Flutter's beta phase"),
97+
BulletListText("Over 3 years, started writing code with Flutter & Dart in 2018 during Flutter's beta phase"),
9498
BulletListText("Freelance Development utilizing Flutter to build applications for various clients"),
95-
BulletListText("Experienced in complex skills such as isolate computation for encryption & efficient state management "),
99+
BulletListText("Experienced in complex skills such as isolate computation for encryption & efficient state management"),
96100
Padding(padding: const EdgeInsets.all(5)),
97101
Text("Java/Kotlin & Android:"),
98-
BulletListText("Over 4 years, where I started writing code in Java consistently in 7th grade"),
102+
BulletListText("Over 5 years, where I started writing code in Java consistently in 7th grade"),
99103
BulletListText("Primarily Java and Android"),
100104
BulletListText("Worked with various Android apps written with Java, but have no trouble interpreting and utilizing Kotlin"),
101105
Padding(padding: const EdgeInsets.all(5)),
102106
Text("Swift/Objective-C & iOS/macOS:"),
103-
BulletListText("Over 2 years, where I started taking a look at Objective-C code in various Open Source macOS apps"),
107+
BulletListText("Over 3 years, where I started taking a look at Objective-C code in various Open Source macOS apps"),
104108
BulletListText("Primarily in swift for macOS development through AppKit"),
105109
BulletListText("Wrote iOS specific features in Swift within Flutter apps"),
106110
Padding(padding: const EdgeInsets.all(5)),
@@ -149,7 +153,6 @@ class AboutState extends State<About> with WidgetsBindingObserver {
149153
/// the other to download.
150154
Widget createResumeViewOpen() {
151155
String userPlatform = getUserAgent().toLowerCase();
152-
print(userPlatform);
153156
bool showSingleButton = false;
154157
if (userPlatform.contains("ipod") || userPlatform.contains("ipad") || userPlatform.contains("iphone") || userPlatform.contains("android")) {
155158
showSingleButton = true;
@@ -186,11 +189,6 @@ class AboutState extends State<About> with WidgetsBindingObserver {
186189
);
187190
}
188191

189-
/// Test method to use stripe (will be used in the future sometime...
190-
void callJS() {
191-
js.context.callMethod('createAndRedirect', ["price_1HLJr5Ge8QXeWO1XzL92REy5"]);
192-
}
193-
194192
String getUserAgent() {
195193
return "${js.context.callMethod('getUserAgent')}";
196194
}
@@ -207,9 +205,9 @@ class AboutState extends State<About> with WidgetsBindingObserver {
207205
String schoolLevel = "";
208206
String gradeLevel = "";
209207
DateTime now = DateTime.now();
210-
if (now.year > 2026 && now.month > 6) {
208+
if (now.year >= 2026 && now.month > 5) {
211209
return "";
212-
} else if (now.year > 2022 && now.month > 6) {
210+
} else if (now.year >= 2022 && now.month > 5) {
213211
schoolLevel = "College";
214212
} else {
215213
schoolLevel = "High School";

lib/ui/projects.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ class ProjectsState extends State<Projects> with WidgetsBindingObserver {
2929
@override
3030
void initState() {
3131
super.initState();
32-
WidgetsBinding.instance?.addPostFrameCallback((_){
32+
WidgetsBinding.instance.addPostFrameCallback((_){
3333
RouteController.of(context)?.updateRoute("projects");
3434
});
35-
WidgetsBinding.instance?.addObserver(this);
35+
WidgetsBinding.instance.addObserver(this);
3636
}
3737

3838
///Dispose method
3939
///Currently only removes the observer set in initState for the light/dark theme changes
4040
@override
4141
void dispose() {
42-
WidgetsBinding.instance?.removeObserver(this);
42+
WidgetsBinding.instance.removeObserver(this);
4343
super.dispose();
4444
}
4545

4646
///didChangePlatformBrightness method
4747
///Only changes the listener's state to the theme allowing to change the theme while user is on the screen
4848
@override
4949
void didChangePlatformBrightness() {
50-
WidgetsBinding.instance?.window.platformBrightness;
50+
WidgetsBinding.instance.window.platformBrightness;
5151
}
5252

5353
@override

0 commit comments

Comments
 (0)