Skip to content

Commit

Permalink
everything working good for now!
Browse files Browse the repository at this point in the history
  • Loading branch information
necromancerthedark committed Jun 9, 2021
1 parent 6c70abc commit 451a834
Show file tree
Hide file tree
Showing 44 changed files with 1,523 additions and 56 deletions.
29 changes: 29 additions & 0 deletions analysis_options.yaml
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
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.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 android/app/src/main/res/mipmap-mdpi/ic_launcher.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 android/app/src/main/res/mipmap-xhdpi/ic_launcher.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 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.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 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/gradle.properties
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
Binary file added asset/61.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 asset/62.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 asset/63.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 asset/64.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 asset/github-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 added asset/instagram.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 asset/kgp.jpg
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 asset/quiz.jpg
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 asset/whatsapp.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 asset/whatsapp1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
216 changes: 216 additions & 0 deletions lib/Discussion.dart
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,
),
);
},
);
}
21 changes: 20 additions & 1 deletion lib/UpperBar.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:page_transition/page_transition.dart';
import 'Discussion.dart';
import 'changtheme.dart';

class Upperbar extends StatefulWidget with PreferredSizeWidget {
@override
Expand All @@ -14,11 +17,27 @@ class _UpperbarState extends State<Upperbar> {
Widget build(BuildContext context) {
return Container(
child: AppBar(
actions: [
changeTheme(),
],
leading: GestureDetector(
onTap: () {
Navigator.push(
context,
PageTransition(
type: PageTransitionType.scale,
alignment: Alignment.topLeft,
child: Discussion()));
},
child: Icon(Icons.developer_mode_rounded),
),
centerTitle: true,
title: Text(
"Class Links",
style: GoogleFonts.caveat(
textStyle: TextStyle(color: Colors.black87),
// textStyle: themeprovider.isDarkMode
// ? TextStyle(color: Colors.white)
// : TextStyle(color: Colors.black87),
fontSize: 40.0,
),
),
Expand Down
17 changes: 17 additions & 0 deletions lib/changtheme.dart
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);
});
}
}
Loading

0 comments on commit 451a834

Please sign in to comment.