Skip to content

Commit

Permalink
New update stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashank18 committed Apr 22, 2020
1 parent bc84ed2 commit 93cc384
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 2 deletions.
Binary file added rickandmorty/Images/wubba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rickandmorty/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.rickandmorty">
<uses-permission android:name="android.permission.INTERNET"/>
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
Expand Down
1 change: 1 addition & 0 deletions rickandmorty/android/settings_aar.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':app'
2 changes: 1 addition & 1 deletion rickandmorty/lib/characterofTheDay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class _CHaracterOfTheDayState extends State<CHaracterOfTheDay> {
);
}
else {
return CircularProgressIndicator();
return Center(child:Image.asset('Images/wubba.png'),);
}
},
),
Expand Down
3 changes: 2 additions & 1 deletion rickandmorty/lib/characters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class _charactersState extends State<characters> {

setState(() {
// Get the JSON data
data = json.decode(response.body)['results'];
data = json.decode(response.body);
});

return "Successfull";
Expand All @@ -52,6 +52,7 @@ class _charactersState extends State<characters> {
body: Container(
color:Color.fromRGBO(45, 62, 80, 1),
child: ListView.builder(
physics:BouncingScrollPhysics(),
itemCount: data == null ? 0 : data.length,
itemBuilder: (BuildContext context, index) {
return Card(
Expand Down
3 changes: 3 additions & 0 deletions rickandmorty/lib/cookedBook.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class _cookedBookState extends State<cookedBook> {
backgroundColor:Color.fromRGBO(45, 62, 80, 1),
leading: InkWell(onTap: (){Navigator.pop(context);},child: Icon(Icons.arrow_back_ios,color:Colors.red)),
title: Text("Cooked Book",style: GoogleFonts.varelaRound(textStyle:TextStyle(color:Colors.red)),),
actions: <Widget>[
IconButton(icon: Icon(Icons.info_outline,color:Colors.red), onPressed: (){})
],
),
body: Container(
height: screenHeight,
Expand Down
Empty file added rickandmorty/lib/developer.dart
Empty file.
1 change: 1 addition & 0 deletions rickandmorty/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ flutter:
assets:
- Images/rick-face-png-6.png
- Images/bg.png
- Images/wubba.png

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
Expand Down

0 comments on commit 93cc384

Please sign in to comment.