Skip to content

Commit

Permalink
Added local assets for categories
Browse files Browse the repository at this point in the history
  • Loading branch information
steevjames committed Dec 29, 2020
1 parent 87ff68b commit 7d7cc83
Show file tree
Hide file tree
Showing 10 changed files with 167 additions and 65 deletions.
Binary file added assets/categories/competitions.jpg
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 assets/categories/conferences.jpg
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 assets/categories/general.jpg
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 assets/categories/talks.jpg
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 assets/categories/workshops.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/logowithtext.png
Binary file not shown.
5 changes: 2 additions & 3 deletions lib/UI/Screens/HomePage/Widgets/Categories/categoryCard.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:excelapp/UI/Screens/EventLists/eventsList.dart';
import 'package:flutter/material.dart';
import 'package:excelapp/UI/constants.dart';
import 'package:cached_network_image/cached_network_image.dart';

class CategoryCard extends StatelessWidget {
final Map<String, String> category;
Expand Down Expand Up @@ -31,8 +30,8 @@ class CategoryCard extends StatelessWidget {
children: <Widget>[
// Image
Container(
child: CachedNetworkImage(
imageUrl: category['imageUrl'],
child: Image.asset(
category['imageUrl'],
fit: BoxFit.cover,
),
),
Expand Down
15 changes: 5 additions & 10 deletions lib/UI/Screens/HomePage/Widgets/Categories/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,26 @@ var categoriesMap = [
{
"name": "Competitions",
"info": "Its time to show who you are and what you are capable of.",
"imageUrl":
"https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"
"imageUrl": "assets/categories/competitions.jpg"
},
{
"name": "Talks",
"info": "Get inspired from the words of those, ready to spread it",
"imageUrl":
"https://images.unsplash.com/photo-1526398977052-654221a252b1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80"
"imageUrl": "assets/categories/talks.jpg"
},
{
"name": "General",
"info": "Dance to the songs, tap to the beats. Cause you gotta let it go.",
"imageUrl":
"https://images.unsplash.com/photo-1508253147813-f69206c47690?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80"
"imageUrl": "assets/categories/general.jpg"
},
{
"name": "Workshops",
"info": "End up expertising in a skill by attending our workshops",
"imageUrl":
"https://images.unsplash.com/photo-1540575467063-178a50c2df87?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"
"imageUrl": "assets/categories/workshops.jpg"
},
{
"name": "Conferences",
"info": "Get inspired from the words of those, ready to spread it",
"imageUrl":
"https://images.unsplash.com/photo-1535016120720-40c646be5580?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"
"imageUrl": "assets/categories/conferences.jpg"
},
];
Loading

0 comments on commit 7d7cc83

Please sign in to comment.