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
14 changes: 14 additions & 0 deletions book_reader/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ if (flutterVersionName == null) {
}

apply plugin: 'com.android.application'
<<<<<<< HEAD
<<<<<<< HEAD
apply plugin: 'com.google.gms.google-services'
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

Expand All @@ -41,6 +48,13 @@ android {
applicationId "com.example.book_reader"
minSdkVersion 16
targetSdkVersion 28
<<<<<<< HEAD
<<<<<<< HEAD
multiDexEnabled true
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
48 changes: 48 additions & 0 deletions book_reader/android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"project_info": {
"project_number": "203064539896",
"firebase_url": "https://bookreader-f51ec.firebaseio.com",
"project_id": "bookreader-f51ec",
"storage_bucket": "bookreader-f51ec.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:203064539896:android:cb8f756342208cd5e7990d",
"android_client_info": {
"package_name": "com.example.book_reader"
}
},
"oauth_client": [
{
"client_id": "203064539896-evpmps91md5g2cnjmgu6tk1htk138p3t.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.book_reader",
"certificate_hash": "e4213537a29c22c4db76dee1e9efc796b8d765be"
}
},
{
"client_id": "203064539896-jv5nld3lk0usosg61mbseb65o7ae1ibd.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAINwPBFShbQVCIyNdPtUaWd75Q1AIDp9U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "203064539896-jv5nld3lk0usosg61mbseb65o7ae1ibd.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
7 changes: 7 additions & 0 deletions book_reader/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
<<<<<<< HEAD
<<<<<<< HEAD
classpath 'com.google.gms:google-services:4.3.3'
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
}
}

Expand Down
Binary file added book_reader/assets/google_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 149 additions & 0 deletions book_reader/lib/home.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,148 @@
import 'package:flutter/material.dart';
import 'package:book_reader/Animation/FadeAnimation.dart';
import 'package:book_reader/main.dart';
<<<<<<< HEAD
<<<<<<< HEAD
import 'package:flutter/services.dart';




=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d

class MainPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
<<<<<<< HEAD
<<<<<<< HEAD
resizeToAvoidBottomInset: false,
backgroundColor: Colors.white,
appBar: AppBar(
elevation: 0,
brightness: Brightness.light,
backgroundColor: Colors.white,
leading: IconButton(
onPressed: () {
Navigator.pop(context);
},
icon: Icon(
Icons.arrow_back_ios,
size: 20,
color: Colors.black,
),
),
actions: <Widget>[
IconButton(
icon: Icon(
Icons.gps_off,
color: Colors.black,
),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => HomePage()));
},
)
],
),
body: Container(
height: MediaQuery.of(context).size.height,
width: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Column(
children: <Widget>[
FadeAnimation(
1,
Text(
"Book Reader",
style: TextStyle(
fontSize: 30, fontWeight: FontWeight.bold),
)),
SizedBox(
height: 20,
),
FadeAnimation(
1.2,
Text(
"Write the name of the book",
style:
TextStyle(fontSize: 15, color: Colors.grey[700]),
),
),
FadeAnimation(
1.2,
Text(
"and we will read it for you!",
style: TextStyle(
fontSize: 15, color: Colors.grey[700]),
)),
],
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 40),
child: Column(
children: <Widget>[
FadeAnimation(1.2, makeInput(label: "Book Name")),
],
),
),
FadeAnimation(
1.4,
Padding(
padding: EdgeInsets.symmetric(horizontal: 40),
child: Container(
padding: EdgeInsets.only(top: 3, left: 3),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
border: Border(
bottom: BorderSide(color: Colors.black),
top: BorderSide(color: Colors.black),
left: BorderSide(color: Colors.black),
right: BorderSide(color: Colors.black),
)),
child: MaterialButton(
minWidth: double.infinity,
height: 60,
onPressed: () {},
color: Colors.greenAccent,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50)),
child: Text(
"Read!",
style: TextStyle(
fontWeight: FontWeight.w600, fontSize: 18),
),
),
),
)),
],
),
),
FadeAnimation(
1.2,
Container(
height: MediaQuery.of(context).size.height / 3,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/background.png'),
fit: BoxFit.cover)),
))
],
),
),
);
=======
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
resizeToAvoidBottomInset: false,
backgroundColor: Colors.white,
appBar: AppBar(
Expand Down Expand Up @@ -127,6 +264,10 @@ class MainPage extends StatelessWidget {
),
),
);
<<<<<<< HEAD
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
=======
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
}

Widget makeInput({label, obscureText = false}) {
Expand Down Expand Up @@ -157,4 +298,12 @@ class MainPage extends StatelessWidget {
],
);
}
<<<<<<< HEAD
<<<<<<< HEAD
}
=======
}
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
=======
}
>>>>>>> fa96300360c16a737f001b7a592b920de0213c4d
Loading