diff --git a/lib/pages/home.dart b/lib/pages/home.dart index 34a32bc..86beab6 100644 --- a/lib/pages/home.dart +++ b/lib/pages/home.dart @@ -81,7 +81,53 @@ class _HomeState extends State { ], ), backgroundColor: Colors.white, - drawer: Drawer(), + drawer: Drawer( + child: Column( + children: [ + UserAccountsDrawerHeader( + decoration: BoxDecoration(color: Colors.pink), + currentAccountPicture: ClipRRect( + borderRadius: BorderRadius.circular(10), + child: Image.network( + 'https://avatars.githubusercontent.com/u/74711322?v=4'), + ), + accountName: Text('NewUser'), + accountEmail: Text('userNew@email.com')), + ListTile( + onTap: () {}, + leading: Icon( + Icons.info_outline_rounded, + size: 25, + ), + title: Text('About'), + ), + ListTile( + onTap: () {}, + leading: Icon( + Icons.catching_pokemon_rounded, + size: 25, + ), + title: Text('View Project on Github'), + ), + ListTile( + onTap: () {}, + leading: Icon( + Icons.change_circle_outlined, + size: 25, + ), + title: Text('ChangeLogs'), + ), + ListTile( + onTap: () {}, + leading: Icon( + Icons.bug_report, + size: 25, + ), + title: Text('Bug Reports'), + ) + ], + ), + ), appBar: AppBar( // automaticallyImplyLeading: false, iconTheme: IconThemeData(color: Colors.black), diff --git a/lib/pages/splash_screen.dart b/lib/pages/splash_screen.dart index 49b6f92..b3cbe5a 100644 --- a/lib/pages/splash_screen.dart +++ b/lib/pages/splash_screen.dart @@ -27,17 +27,20 @@ class _SplashState extends State { bookData.addnovels(); Navigator.pushNamed(context, Home.id); }); + Timer( + Duration(seconds: 3), + () => Navigator.pushReplacement( + context, MaterialPageRoute(builder: (context) => Home()))); } @override Widget build(BuildContext context) { - Timer( - Duration(seconds: 3), - () => Navigator.of(context).pushReplacement( - MaterialPageRoute(builder: (BuildContext context) => Home()))); return Scaffold( body: Center( - child: CircularProgressIndicator(), - )); + child: Icon( + Icons.bolt, + color: Colors.yellow, + size: 100, + ))); } } diff --git a/lib/utils/book_view.dart b/lib/utils/book_view.dart index 35cde09..a73fa0f 100644 --- a/lib/utils/book_view.dart +++ b/lib/utils/book_view.dart @@ -1,7 +1,5 @@ import 'dart:convert'; -// import 'package:dio/dio.dart'; - import '../models/book.dart'; import 'package:http/http.dart' as http; diff --git a/lib/utils/pdf_api.dart b/lib/utils/pdf_api.dart index 9136b9f..8fdcfbe 100644 --- a/lib/utils/pdf_api.dart +++ b/lib/utils/pdf_api.dart @@ -1,7 +1,6 @@ import 'dart:io'; import 'package:file_picker/file_picker.dart'; -import 'package:zippy/pages/result_list.dart'; Future pickFile() async { final res = await FilePicker.platform.pickFiles( diff --git a/lib/widgets/alert.dart b/lib/widgets/alert.dart index 87c6007..f448082 100644 --- a/lib/widgets/alert.dart +++ b/lib/widgets/alert.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; showAlertDialog(BuildContext context) { - // Create button Widget okButton = ElevatedButton( child: Text("OK"), onPressed: () { @@ -9,7 +8,6 @@ showAlertDialog(BuildContext context) { }, ); - // Create AlertDialog AlertDialog downloadAlert = AlertDialog( title: Text("Important Notice"), content: Text( @@ -19,7 +17,6 @@ showAlertDialog(BuildContext context) { ], ); - // show the dialog showDialog( context: context, builder: (BuildContext context) {