Skip to content

Commit

Permalink
Merge pull request #44 from JordyHers/dev
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
JordyHers committed May 2, 2023
2 parents 80b5e7f + 5a1471d commit 659d8c1
Show file tree
Hide file tree
Showing 75 changed files with 716 additions and 335 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# These are supported funding model platforms

github: [jordyhers]
patreon: patreon.com/user?u=91968185
patreon: 91968185
2 changes: 1 addition & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Check Logos PNG files
run: |
shopt -s nullglob
for file in $(find assets \( -path "assets/basketball/*" -o -path "assets/euroleague/*" -o -path "assets/fashion/*" -o -path "assets/food/*" -o -path "assets/football/*" -o -path "assets/media/*" -o -path "assets/tech/*" \) -type f ! -name "*.png"); do
for file in $(find assets \( -path "assets/basketball/*" -o -path "assets/euroleague/*" -o -path "assets/fashion/*" -o -path "assets/daily/*" -o -path "assets/football/*" -o -path "assets/media/*" -o -path "assets/tech/*" -o -path "assets/nfl/*" -o -path "assets/cricket/*" \) -type f ! -name "*.png"); do
echo "ERROR: File '$file' is not a PNG file"
done
- name: Setup Flutter
Expand Down
65 changes: 53 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@
![logos](https://user-images.githubusercontent.com/49708438/235303282-3d0c03b9-39bc-475e-be86-33ef99305889.jpeg)

A Flutter plugin that provides asset images for popular industry categories.
It includes 5 main classes, Sports, Fashion, Tech, Food, and Media, each extending their respective interface.
It includes 5 main classes, Sports, Fashion, Tech, Daily, and Media, each extending their respective interface.
This plugin can be useful for projects that require industry-related images. This plugin can be useful for various
projects, such as Quizz app, Catalogs, eCommerce App, Templates, Websites, and more. It can be especially usefu
projects, such as Quiz app, Catalogs, eCommerce App, Templates, Websites, and more. It can be especially usefu
l for projects that require industry-related images.




## Screenshots

<p align="center">
<img src="https://user-images.githubusercontent.com/49708438/234598133-8159f94e-63ac-4dfc-acd8-bb5c7901c0da.gif" alt="Demo"/>
</p>
<div>
<img width="542" alt="Screenshot 2023-05-02 at 09 24 49" src="https://user-images.githubusercontent.com/49708438/235604942-bb731508-ca3e-4d6f-b7f6-a976f9dbe93f.png">
<img width="542" alt="Screenshot 2023-05-02 at 09 28 25" src="https://user-images.githubusercontent.com/49708438/235605666-35d0fc49-3f3a-4cc1-a435-b323bd5e5216.png">
</div>


## Installation
Expand Down Expand Up @@ -56,14 +57,17 @@ import 'package:flutter_any_logo/flutter_any_logo.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Column(
return Center(
child: GridView.count(
crossAxisCount: 5,
children: [
...AnyLogo.cricket.values.map((e) => e.image()).toList(),
...AnyLogo.nba.values.map((e) => e.image()).toList(),
...AnyLogo.fashion.values.map((e) => e.image()).toList(),
...AnyLogo.uefa.values.map((e) => e.image()).toList(),
...AnyLogo.food.values.map((e) => e.image()).toList(),
...AnyLogo.daily.values.map((e) => e.image()).toList(),
...AnyLogo.tech.values.map((e) => e.image()).toList(),
...AnyLogo.nfl.values.map((e) => e.image()).toList(),
],
),
);
Expand All @@ -75,14 +79,15 @@ class MyApp extends StatelessWidget {
if you want to have access to a type a static method is available

```dart
// Single Assets Image NBA
AnyLogo.nba.atlantaHawks
AnyLogo.daily.mcDonalds
//Access all values in a type
AnyLogo.nba.values
//Access the image
AnyLogo.nba.image()
//Access the Image
AnyLogo.uefa.manchesterUnited.image()
// Key? key,
// AssetBundle? bundle,
Expand All @@ -108,13 +113,49 @@ AnyLogo.nba.image()
// int? cacheWidth,
// int? cacheHeight,
// All the variables are sill available
AnyLogo.nba.image(height: 30);
AnyLogo.nba.image(height: 30, fit: BoxFit.contain);
//You can still pass just the asset image without calling [.image()]
Image(image: AssetImage(AnyLogo.nba.atlanta.path)),
// UEFA section contains football teams ⚽️
AnyLogo.uefa.acMilan
AnyLogo.uefa.barcelona
// Daily section contains everyday brands food related etc.. 🍟
AnyLogo.daily.gillette
AnyLogo.daily.nutella
AnyLogo.daily.kellogs
// NFL section contains nfl teams 🏈
AnyLogo.nfl.nflArizonaCardinals
AnyLogo.nfl.nflBuffaloBills
// Fashion section contains clothing / perfume / luxury / watches ⌚️
AnyLogo.fashion.louisVuitton
AnyLogo.fashion.gucci
AnyLogo.fashion.prada
// NBA section contains all nba teams 🏀
AnyLogo.nba.miamiHeat
AnyLogo.nba.losAngelesClippers
AnyLogo.nba.goldenStateWarriors
// Tech contains all brands and tech companies 🕹️
AnyLogo.tech.playstation
AnyLogo.tech.siemens
AnyLogo.tech.visa
// Media section contains social media and area like 🛜
AnyLogo.media.instagram
AnyLogo.media.tiktok
AnyLogo.media.facebook
// Cricket section contains social media and area like 🏏
AnyLogo.cricket.cscs
AnyLogo.cricket.gurajatLions
AnyLogo.cricket.mumbaiIndians
```

Expand Down
Binary file added assets/cricket/bangaloreRoyalChallengers.png
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/cricket/chennaiSuperKings.png
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/cricket/cscs.png
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/cricket/deccanChargers.png
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/cricket/dehliCapitals.png
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/cricket/durhamCricket.png
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/cricket/gurajatLions.png
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/cricket/hpca.png
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/cricket/hubliTigers.png
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/cricket/kolkataKnightRiders.png
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/cricket/luckNowSuperGiants.png
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/cricket/mumbaiIndians.png
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/cricket/sunrisersHyderabad.png
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/daily/chupachups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added assets/daily/gilette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added assets/daily/mcDonals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added assets/daily/snickers.png
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/daily/starbucks.png
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/daily/watson.png
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/nfl/nfl-arizona-cardinals.png
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/nfl/nfl-atlanta-falcons.png
Binary file added assets/nfl/nfl-baltimore-ravens.png
Binary file added assets/nfl/nfl-buffalo-bills.png
Binary file added assets/nfl/nfl-carolina-panthers.png
Binary file added assets/nfl/nfl-chicago-bears.png
Binary file added assets/nfl/nfl-cincinnati-bengals.png
Binary file added assets/nfl/nfl-cleveland-browns.png
Binary file added assets/nfl/nfl-dallas-cowboys.png
Binary file added assets/nfl/nfl-denver-broncos.png
Binary file added assets/nfl/nfl-detroit-lions.png
Binary file added assets/nfl/nfl-green-bay-packers.png
Binary file added assets/nfl/nfl-houston-texans.png
Binary file added assets/nfl/nfl-indianapolis-colts.png
Binary file added assets/nfl/nfl-jacksonville-jaguars.png
Binary file added assets/nfl/nfl-kansas-city-chiefs.png
Binary file added assets/nfl/nfl-los-angeles-chargers.png
Binary file added assets/nfl/nfl-los-angeles-rams.png
Binary file added assets/nfl/nfl-miami-dolphins.png
Binary file added assets/nfl/nfl-minnesota-vikings.png
Binary file added assets/nfl/nfl-new-england-patriots.png
Binary file added assets/nfl/nfl-new-orleans-saints.png
Binary file added assets/nfl/nfl-new-york-giants.png
Binary file added assets/nfl/nfl-new-york-jets.png
Binary file added assets/nfl/nfl-oakland-raiders.png
Binary file added assets/nfl/nfl-philadelphia-eagles.png
Binary file added assets/nfl/nfl-pittsburgh-steelers.png
Binary file added assets/nfl/nfl-san-francisco-49ers.png
Binary file added assets/nfl/nfl-seattle-seahawks.png
Binary file added assets/nfl/nfl-tampa-bay-buccaneers.png
Binary file added assets/nfl/nfl-tennessee-titans.png
Binary file added assets/nfl/nfl-washington-commanders.png
Binary file added assets/tech/kodak.png
Binary file added assets/tech/masterCard.png
Binary file added assets/tech/playstation.png
Binary file added assets/tech/siemens.png
Binary file added assets/tech/visa.png
22 changes: 11 additions & 11 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ class _MyAppState extends State<MyApp> {
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: SizedBox(
width: 200,
child: ListView(
children: [
...AnyLogo.nba.values.map((e) => e.image()).toList(),
...AnyLogo.fashion.values.map((e) => e.image()).toList(),
...AnyLogo.uefa.values.map((e) => e.image()).toList(),
...AnyLogo.food.values.map((e) => e.image()).toList(),
...AnyLogo.tech.values.map((e) => e.image()).toList(),
],
),
child: GridView.count(
crossAxisCount: 5,
children: [
...AnyLogo.cricket.values.map((e) => e.image()).toList(),
...AnyLogo.nba.values.map((e) => e.image()).toList(),
...AnyLogo.fashion.values.map((e) => e.image()).toList(),
...AnyLogo.uefa.values.map((e) => e.image()).toList(),
...AnyLogo.daily.values.map((e) => e.image()).toList(),
...AnyLogo.tech.values.map((e) => e.image()).toList(),
...AnyLogo.nfl.values.map((e) => e.image()).toList(),
],
),
),
),
Expand Down
Loading

0 comments on commit 659d8c1

Please sign in to comment.