diff --git a/.flutter-plugins b/.flutter-plugins index 8cf2d30..f168da8 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -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\\ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 996c87e..af3e7fe 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..fc9ff1e Binary files /dev/null and b/assets/logo.png differ diff --git a/lib/main.dart b/lib/main.dart index a2a2330..aa4875e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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()); @@ -14,7 +14,7 @@ class Home extends StatelessWidget { theme: ThemeData( primarySwatch: Colors.teal, ), - home: NoteList(), + home: SplashScreen(), ); } } diff --git a/lib/screens/box.dart b/lib/screens/box.dart new file mode 100644 index 0000000..4b6c668 --- /dev/null +++ b/lib/screens/box.dart @@ -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 + ), + ] +); \ No newline at end of file diff --git a/lib/screens/splashscreen.dart b/lib/screens/splashscreen.dart new file mode 100644 index 0000000..56d706b --- /dev/null +++ b/lib/screens/splashscreen.dart @@ -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 + 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: [ + Container( + decoration: BoxDecoration( + color: Colors.white, + ), + ), + Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Expanded( + flex: 2, + child: Container( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + 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: [ + 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), + ), + ], + ), + ), + ], + ) + ], + ), + ); + } +} diff --git a/pubspec.yaml b/pubspec.yaml index 04a8218..0beff3c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: @@ -40,4 +41,6 @@ flutter: weight: 700 - family: Amaranth fonts: - - asset: fonts/Amaranth-Regular.ttf \ No newline at end of file + - asset: fonts/Amaranth-Regular.ttf + + diff --git a/ss/20201016_231535.gif b/ss/20201016_231535.gif new file mode 100644 index 0000000..a3e883b Binary files /dev/null and b/ss/20201016_231535.gif differ diff --git a/ss/Screenshot_20201016-231501.jpg b/ss/Screenshot_20201016-231501.jpg new file mode 100644 index 0000000..06b6377 Binary files /dev/null and b/ss/Screenshot_20201016-231501.jpg differ diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 8b13789..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1 +0,0 @@ -