Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is a generated file; do not edit or check into version control.
path_provider=/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/
path_provider_linux=/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
path_provider_macos=/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/
sqflite=/home/ayaan/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1/
path_provider=D:\\Flutter\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider-1.6.21\\
path_provider_linux=D:\\Flutter\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-0.0.1+2\\
path_provider_macos=D:\\Flutter\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_macos-0.0.4+4\\
path_provider_windows=D:\\Flutter\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_windows-0.0.4+1\\
sqflite=D:\\Flutter\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\sqflite-1.3.1+1\\
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]},{"name":"sqflite","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1/","dependencies":[]}],"android":[{"name":"path_provider","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]},{"name":"sqflite","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]},{"name":"sqflite","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/home/ayaan/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-07-24 01:11:20.517132","version":"1.21.0-2.0.pre.95"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.21\\\\","dependencies":[]},{"name":"sqflite","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.1+1\\\\","dependencies":[]}],"android":[{"name":"path_provider","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.21\\\\","dependencies":[]},{"name":"sqflite","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.1+1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-0.0.4+4\\\\","dependencies":[]},{"name":"sqflite","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.1+1\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-0.0.1+2\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"D:\\\\Flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-0.0.4+1\\\\","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-10-16 22:55:10.617877","version":"1.20.1"}
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:Note_App/screens/splashscreen.dart';
import 'package:flutter/material.dart';
import 'package:Note_App/screens/note_list.dart';

void main() {
runApp(Home());
Expand All @@ -14,7 +14,7 @@ class Home extends StatelessWidget {
theme: ThemeData(
primarySwatch: Colors.teal,
),
home: NoteList(),
home: SplashScreen(),
);
}
}
37 changes: 37 additions & 0 deletions lib/screens/box.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import 'package:flutter/material.dart';

Color mC = Colors.grey.shade100;
Color mCL = Colors.white;
Color mCD = Colors.black.withOpacity(0.075);
Color mCC = Colors.green.withOpacity(0.65);
Color fCL = Colors.grey.shade600;

BoxDecoration nMbox = BoxDecoration(
shape: BoxShape.circle,
color: mC,
boxShadow: [
BoxShadow(
color: mCD,
offset: Offset(10, 10),
blurRadius: 10,
),
BoxShadow(
color: mCL,
offset: Offset(-10, -10),
blurRadius: 10,
),
]
);

BoxDecoration nMboxInvert = BoxDecoration(
borderRadius: BorderRadius.circular(15),
color: mCD,
boxShadow: [
BoxShadow(
color: mCL,
offset: Offset(3, 3),
blurRadius: 3,
spreadRadius: -3
),
]
);
118 changes: 118 additions & 0 deletions lib/screens/splashscreen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
import 'package:Note_App/screens/box.dart';
import 'package:flutter/material.dart';
// ignore: directives_ordering
import 'dart:async' show Timer;

import 'note_list.dart';
//You can further custom this splash screen
class SplashScreen extends StatefulWidget {
@override
_SplashScreenState createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen>
with SingleTickerProviderStateMixin {
AnimationController _iconAnimationController;
CurvedAnimation _iconAnimation;

void handleTimeOut() {
Navigator.of(context).pushReplacement(
MaterialPageRoute(builder: (BuildContext context) => new NoteList()));
}

startTimeout() async {
var duration = const Duration(seconds: 5);
return new Timer(duration, handleTimeOut);
}

@override
void initState() {
super.initState();
_iconAnimationController = AnimationController(
vsync: this, duration: new Duration(milliseconds: 2200));
_iconAnimation = new CurvedAnimation(
parent: _iconAnimationController, curve: Curves.easeIn);
_iconAnimation.addListener(() => this.setState(() {}));
_iconAnimationController.forward();
startTimeout();
}

@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
fit: StackFit.expand,
children: <Widget>[
Container(
decoration: BoxDecoration(
color: Colors.white,
),
),
Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Expanded(
flex: 2,
child: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Flexible(
child: SizedBox(
height: 400,
),
),
Center(
child: Container(
width: 220,
height: 220,
padding: EdgeInsets.all(8),
decoration: nMbox,
child: Container(
decoration: nMbox,
padding: EdgeInsets.all(3),
child: Center(
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
image: DecorationImage(
// image: AssetImage('assets/avatar.JPG'),
image: new NetworkImage(
"https://i.imgur.com/UDal7nk.png")),
),
),
),
),
),
),


],
),
),
),
Expanded(
flex: 1,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const CircularProgressIndicator(
backgroundColor: Colors.red),
Padding(padding: EdgeInsets.fromLTRB(0.0, 20.0, 0.0, 15.0)),
Text(
" ",
style: TextStyle(
color: Colors.white,
fontSize: 15.0,
fontWeight: FontWeight.bold),
),
],
),
),
],
)
],
),
);
}
}
7 changes: 5 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ dependencies:
sqflite: any
path_provider: any
intl: ^0.16.1
simple_animations:



dev_dependencies:
flutter_test:
sdk: flutter
lint: ^1.2.0

flutter:
uses-material-design: true
fonts:
Expand All @@ -40,4 +41,6 @@ flutter:
weight: 700
- family: Amaranth
fonts:
- asset: fonts/Amaranth-Regular.ttf
- asset: fonts/Amaranth-Regular.ttf


Binary file added ss/20201016_231535.gif
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 ss/Screenshot_20201016-231501.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion test/widget_test.dart

This file was deleted.