-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c70abc
commit 451a834
Showing
44 changed files
with
1,523 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file configures the analyzer, which statically analyzes Dart code to | ||
# check for errors, warnings, and lints. | ||
# | ||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
# invoked from the command line by running `flutter analyze`. | ||
|
||
# The following line activates a set of recommended lints for Flutter apps, | ||
# packages, and plugins designed to encourage good coding practices. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
linter: | ||
# The lint rules applied to this project can be customized in the | ||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
# included above or to enable additional rules. A list of all available lints | ||
# and their documentation is published at | ||
# https://dart-lang.github.io/linter/lints/index.html. | ||
# | ||
# Instead of disabling a lint rule for the entire project in the | ||
# section below, it can also be suppressed for a single line of code | ||
# or a specific dart file by using the `// ignore: name_of_lint` and | ||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
# producing the lint. | ||
rules: | ||
# avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
android.useAndroidX=true | ||
android.enableJetifier=true | ||
android.enableJetifier=true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:timetable/profileUpperBar.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
import 'package:provider/provider.dart'; | ||
import 'theme_provider.dart'; | ||
|
||
class Discussion extends StatefulWidget { | ||
@override | ||
_DiscussionState createState() => _DiscussionState(); | ||
} | ||
|
||
class _DiscussionState extends State<Discussion> { | ||
_launchURL() async { | ||
const url = 'https://wa.me/919889526817'; | ||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
} | ||
|
||
_launchURLGit() async { | ||
const url = 'https://www.github.com/necromancerthedark'; | ||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
} | ||
|
||
_launchURLinsta() async { | ||
const url = 'https://instagram.com/thatsartisting'; | ||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) => ChangeNotifierProvider( | ||
create: (context) => themeProvider(), | ||
builder: (context, _) { | ||
final themeprovider = Provider.of<themeProvider>(context); | ||
return MaterialApp( | ||
theme: MyTheme.lightMode, | ||
darkTheme: MyTheme.darkMode, | ||
themeMode: themeprovider.themeMode, | ||
debugShowCheckedModeBanner: false, | ||
home: Scaffold( | ||
appBar: profileUpperBar(), | ||
body: Container( | ||
child: SizedBox( | ||
height: MediaQuery.of(context).size.height, | ||
child: SingleChildScrollView( | ||
child: Center( | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: <Widget>[ | ||
Padding( | ||
padding: const EdgeInsets.fromLTRB( | ||
20.0, 40.0, 20.0, 20.0), | ||
child: GestureDetector( | ||
child: ClipOval( | ||
child: Image.asset( | ||
"asset/kgp.jpg", | ||
width: 200, | ||
height: 200, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(17.0), | ||
child: SizedBox( | ||
child: Text( | ||
"Kumar Gaurav Pandey", | ||
style: TextStyle( | ||
color: Colors.grey, | ||
fontSize: 32.0, | ||
fontWeight: FontWeight.w300, | ||
), | ||
), | ||
), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(15.0), | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | ||
children: <Widget>[ | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: InkWell( | ||
onTap: _launchURL, | ||
child: Image.asset( | ||
"asset/whatsapp.png", | ||
width: 50, | ||
height: 50, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: InkWell( | ||
onTap: _launchURLGit, | ||
child: ClipOval( | ||
child: Image.asset( | ||
"asset/github-logo.png", | ||
width: 50, | ||
height: 50, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: InkWell( | ||
onTap: _launchURLinsta, | ||
child: Image.asset( | ||
"asset/instagram.png", | ||
width: 50, | ||
height: 50, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
Text( | ||
"An Artist", | ||
style: TextStyle( | ||
fontStyle: FontStyle.italic, | ||
fontSize: 20.0, | ||
color: Colors.black, | ||
fontWeight: FontWeight.lerp( | ||
FontWeight.w200, FontWeight.w300, 2), | ||
), | ||
), | ||
Text( | ||
"A Coder", | ||
style: TextStyle( | ||
fontSize: 20.0, | ||
fontStyle: FontStyle.italic, | ||
color: Colors.black, | ||
fontWeight: FontWeight.lerp( | ||
FontWeight.w200, FontWeight.w300, 2), | ||
), | ||
), | ||
Text( | ||
"A Student", | ||
style: TextStyle( | ||
fontSize: 20.0, | ||
fontStyle: FontStyle.italic, | ||
color: Colors.black, | ||
fontWeight: FontWeight.lerp( | ||
FontWeight.w200, FontWeight.w300, 2), | ||
), | ||
), | ||
Text( | ||
"An Android Developer", | ||
style: TextStyle( | ||
color: Colors.black, | ||
fontStyle: FontStyle.italic, | ||
fontSize: 20.0, | ||
fontWeight: FontWeight.lerp( | ||
FontWeight.w200, FontWeight.w300, 2), | ||
), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(2.0), | ||
child: Text( | ||
"Linux Enthusiast", | ||
style: TextStyle( | ||
fontStyle: FontStyle.italic, | ||
fontSize: 20.0, | ||
color: Colors.black, | ||
fontWeight: FontWeight.lerp( | ||
FontWeight.w200, FontWeight.w300, 2), | ||
), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
margin: EdgeInsets.fromLTRB(10, 10, 10, 0), | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(30), | ||
topRight: Radius.circular(30), | ||
bottomLeft: Radius.circular(30), | ||
bottomRight: Radius.circular(30), | ||
), | ||
color: Colors.white, | ||
boxShadow: [ | ||
BoxShadow( | ||
//offset: Offset(1, 0.5), | ||
color: Color(0x121212), | ||
blurRadius: 12.0, | ||
spreadRadius: 1.0, | ||
), | ||
], | ||
), | ||
), | ||
backgroundColor: Colors.grey.shade900, | ||
), | ||
); | ||
}, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'theme_provider.dart'; | ||
import 'package:provider/provider.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class changeTheme extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
final themeprovider = Provider.of<themeProvider>(context); | ||
|
||
return Switch.adaptive( | ||
value: themeprovider.isDarkMode, | ||
onChanged: (value) { | ||
final provider = Provider.of<themeProvider>(context, listen: false); | ||
provider.toggletheme(value); | ||
}); | ||
} | ||
} |
Oops, something went wrong.