Skip to content

Commit

Permalink
some code madification in this project
Browse files Browse the repository at this point in the history
  • Loading branch information
follow-prince committed Jul 14, 2023
1 parent d64bd1d commit b191455
Show file tree
Hide file tree
Showing 162 changed files with 5,505 additions and 672 deletions.
2 changes: 0 additions & 2 deletions .firebase/hosting.cHVibGlj.cache

This file was deleted.

2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (localPropertiesFile.exists()) {

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
thrownew GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.dileepabandara.dileepabandara_dev
package dev.elavarasan.elavarasan_dev

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
Expand Up @@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
implementation(platform("com.google.firebase:firebase-bom:32.1.1"))

}
}

Expand Down
5 changes: 5 additions & 0 deletions lib/mobile/ms_2_about_me.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MS2AboutMe extends StatelessWidget {

Widget bio(BuildContext context) {
return SizedBox(
// don't enable this css code because ????
//color: Colors.blue,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down Expand Up @@ -88,6 +89,10 @@ class MS2AboutMe extends StatelessWidget {
);
}

//i that is Colum use doing me reason for my working promotional logo show and editing section

// this down coding for overriding template any query inform @follow-prince

Widget titles(BuildContext context) {
return SizedBox(
//color: Colors.red,
Expand Down
12 changes: 6 additions & 6 deletions lib/statics/data_values.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class DataValues {
'In addition to my studies, I\'m also passionate about giving back to various communities and helping others, which is why I volunteer my time to help out whenever I can, and I believe that this work is vital in helping to create a better future for everyone.';
static const String aboutMeFullNameTitle = 'Full Name';
static const String aboutMeFullNameDescription =
'Elavarasan S';
'ELAVARASAN';
static const String aboutMeNwITitle = 'Name with Initials';
static const String aboutMeNwIDescription = 'K.Sundaram ';
static const String aboutMeNwIDescription = 'ELAVARASAN S';
static const String aboutMeFnLTitle = 'What do you like to be called?';
static const String aboutMeFnLDescription = 'Prince';
static const String aboutMeDobTitle = 'Birthday';
Expand Down Expand Up @@ -111,10 +111,10 @@ class DataValues {
static const String educationOrg1Course1Name = 'HSC - Higher Secondary School Certificate (+2)';
static const String educationOrg1Course1Grade =
'Commerce with Computer Science';
static const String educationOrg1Course1Year = 'Attempted: 2017 & 2018 \ Percentage : 67% ';
static const String educationOrg1Course1Year = 'Studied Year: 2017 & 2018 \ Percentage : 67% ';
static const String educationOrg1Course2Name = 'SSLC - Secondary School Leaving Certificate (10th) ';
static const String educationOrg1Course2Grade = 'Passed with 62% Percentages';
static const String educationOrg1Course2Year = 'Attempted: 2015 & 2016';
static const String educationOrg1Course2Year = 'Studied Year: 2015 & 2016';
static const String educationOrg1Course3Name = 'Education Period';
static const String educationOrg1Course3Year = 'Secondary: 2011 - 2018';
static const String educationOrg1Course3Year2 = 'Primary: 2005 - 2011';
Expand All @@ -128,7 +128,7 @@ class DataValues {
static const String educationOrg03Course1Name = 'Bachelor of Commerce - B.Com';
static const String educationOrg03Course1Grade =
'CGPA 6.33 (First Class)';
static const String educationOrg03Course1Year = 'Attempted: 2018 - 2021';
static const String educationOrg03Course1Year = 'Studied Year: 2018 - 2021';



Expand All @@ -138,7 +138,7 @@ class DataValues {
static const String educationOrg04Course1Name = 'Master of Computer Application - MCA';
static const String educationOrg04Course1Grade =
'Pursuing a Final Year';
static const String educationOrg04Course1Year = 'Attempted: 2022 - 2024';
static const String educationOrg04Course1Year = 'Studying Year: 2022 - 2024';



Expand Down
36 changes: 36 additions & 0 deletions lib/theme/responsive_screen_provider.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
import 'package:flutter/material.dart';

// English

// 1. The code starts with importing the required package `flutter/material.dart`. This package provides the basic widgets and functionality needed for creating Flutter applications, including the `BuildContext` class used in this code.

// 2. The code defines a class named `ResponsiveScreenProvider`. This class contains three static methods: `isMobileScreen`, `isTabScreen`, and `isDesktopScreen`. These methods are used to determine the type of screen being used in the application based on the width of the current screen.

// 3. The `isMobileScreen` method takes a `BuildContext` object as a parameter and returns a boolean value. It uses the `MediaQuery.of(context).size.width` property to get the width of the current screen. If the width is less than 480 pixels, it is considered a mobile screen, and the method returns `true`; otherwise, it returns `false`.

// 4. The `isTabScreen` method is similar to `isMobileScreen` but adds an additional condition to check if the screen width is greater than 480 pixels and less than 800 pixels. If these conditions are met, it is considered a tablet-sized screen, and the method returns `true`.

// 5. The `isDesktopScreen` method is again similar to the previous two methods but checks if the screen width is greater than or equal to 800 pixels. If this condition is met, it is considered a desktop-sized screen, and the method returns `true`.






// Tamil


// 1. தேவையான தொகுப்பான `flutter/material.dart` ஐ இறக்குமதி செய்வதன் மூலம் குறியீடு தொடங்குகிறது. இந்தக் குறியீட்டில் பயன்படுத்தப்படும் `BuildContext` வகுப்பு உட்பட, Flutter பயன்பாடுகளை உருவாக்குவதற்குத் தேவையான அடிப்படை விட்ஜெட்டுகள் மற்றும் செயல்பாடுகளை இந்தத் தொகுப்பு வழங்குகிறது.

// 2. குறியீடு `ResponsiveScreenProvider` என்ற வகுப்பை வரையறுக்கிறது. இந்த வகுப்பில் மூன்று நிலையான முறைகள் உள்ளன: `isMobileScreen`, `isTabScreen` மற்றும் `isDesktopScreen`. தற்போதைய திரையின் அகலத்தின் அடிப்படையில் பயன்பாட்டில் பயன்படுத்தப்படும் திரையின் வகையைத் தீர்மானிக்க இந்த முறைகள் பயன்படுத்தப்படுகின்றன.

// 3. `isMobileScreen` முறையானது `BuildContext` பொருளை அளவுருவாக எடுத்து பூலியன் மதிப்பை வழங்குகிறது. தற்போதைய திரையின் அகலத்தைப் பெற இது `MediaQuery.of(context).size.width` பண்புகளைப் பயன்படுத்துகிறது. அகலம் 480 பிக்சல்களுக்குக் குறைவாக இருந்தால், அது மொபைல் திரையாகக் கருதப்படும், மேலும் முறை `true` என்பதைத் தரும்; இல்லையெனில், அது `தவறு` என்று திரும்பும்.

// 4. `isTabScreen` முறையானது `isMobileScreen` போலவே உள்ளது, ஆனால் திரையின் அகலம் 480 பிக்சல்களை விட அதிகமாகவும் 800 பிக்சல்களுக்கும் குறைவாகவும் உள்ளதா என்பதைச் சரிபார்க்க கூடுதல் நிபந்தனையைச் சேர்க்கிறது. இந்த நிபந்தனைகள் பூர்த்தி செய்யப்பட்டால், அது டேப்லெட் அளவிலான திரையாகக் கருதப்படும், மேலும் முறை `சரி` என்பதைத் தரும்.

// 5. `isDesktopScreen` முறையானது முந்தைய இரண்டு முறைகளைப் போலவே உள்ளது, ஆனால் திரையின் அகலம் 800 பிக்சல்களை விட அதிகமாக உள்ளதா அல்லது அதற்கு சமமாக உள்ளதா என்பதைச் சரிபார்க்கிறது. இந்த நிபந்தனை பூர்த்தி செய்யப்பட்டால், அது டெஸ்க்டாப் அளவிலான திரையாகக் கருதப்படும், மேலும் முறை `சரி` என்பதைத் தரும்.



class ResponsiveScreenProvider {
static bool isMobileScreen(BuildContext context) {
return MediaQuery.of(context).size.width < 480;
Expand All @@ -14,3 +46,7 @@ class ResponsiveScreenProvider {
return MediaQuery.of(context).size.width >= 800;
}
}




20 changes: 12 additions & 8 deletions lib/widgets/button_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,30 @@ class ButtonIcon {
final double height;
final double width;

ButtonIcon(
{required this.name,
required this.url,
this.height = 30.0,
this.width = 30.0});
ButtonIcon({
required this.name,
required this.url,
this.height = 30.0,
this.width = 30.0,
});

Widget returnButton() {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: () async {
if (!await launchUrl(url)) {
if (!await launch(url.toString())) {
throw 'Could not launch $url';
}
log("Direct to: $url");
},
child: Tooltip(
message: url.toString(),
child: Image.asset('assets/icons/$name.png',
height: height, width: width),
child: Image.asset(
'assets/icons/$name.png',
height: height,
width: width,
),
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/frame_title.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:dileepabandara_dev/theme/responsive_screen_provider.dart';
import 'package:elavarasan_dev/theme/responsive_screen_provider.dart';
import 'package:flutter/material.dart';

class FrameTitle extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/social_profiles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SocialProfiles extends StatelessWidget {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ButtonIcon(name: 'dev', url: DataValues.devURL).returnButton(),
ButtonIcon(name: 'dev', url: DataValues.devURL ).returnButton(),
const SizedBox(width: 10.0),
ButtonIcon(name: 'hashnode', url: DataValues.hashnodeURL)
.returnButton(),
Expand Down

0 comments on commit b191455

Please sign in to comment.