-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: 🎨 add logo, update favicon, and update meta-data
- Loading branch information
1 parent
38d4f73
commit 1fb4508
Showing
23 changed files
with
175 additions
and
43 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/flutter_svg.dart'; | ||
import 'package:made_with_flutter/utils/assets_manager.dart'; | ||
|
||
enum AppLogoType { colored, white } | ||
|
||
class AppLogo extends StatelessWidget { | ||
final AppLogoType type; | ||
final double size; | ||
const AppLogo({super.key, this.size = 50}); | ||
|
||
const AppLogo({ | ||
super.key, | ||
this.type = AppLogoType.colored, | ||
this.size = 50, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
// TODO: Replace with your own logo | ||
return ColorFiltered( | ||
colorFilter: const ColorFilter.mode(Colors.white, BlendMode.srcIn), | ||
child: FlutterLogo(size: size), | ||
return SvgPicture.asset( | ||
_logo, | ||
width: size, | ||
height: size, | ||
); | ||
} | ||
|
||
String get _logo { | ||
switch (type) { | ||
case AppLogoType.colored: | ||
return AssetsManager.appLogoColored; | ||
case AppLogoType.white: | ||
return AssetsManager.appLogoWhite; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
class AssetsManager { | ||
AssetsManager._(); | ||
|
||
// Folders | ||
// Main Folders | ||
static const _assetsFolder = 'assets'; | ||
static const _imagesFolder = '$_assetsFolder/images'; | ||
static const _svgsFolder = 'svgs'; | ||
static const _lottieFolder = '$_assetsFolder/lottie'; | ||
|
||
// Sub Folders | ||
static const _appLogoFolder = '$_svgsFolder/app_logo'; | ||
|
||
// Images | ||
static const desktopBackground = '$_imagesFolder/desktop_background.jpg'; | ||
|
||
// SVGs | ||
static const appLogoColored = '$_appLogoFolder/app_logo_colored.svg'; | ||
static const appLogoWhite = '$_appLogoFolder/app_logo_white.svg'; | ||
|
||
// Lottie | ||
static const filesProcessing = '$_lottieFolder/files_processing.json'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,23 @@ | ||
{ | ||
"name": "made_with_flutter", | ||
"short_name": "made_with_flutter", | ||
"name": "Made with Flutter?", | ||
"short_name": "Made with Flutter?", | ||
"start_url": ".", | ||
"display": "standalone", | ||
"background_color": "#0175C2", | ||
"theme_color": "#0175C2", | ||
"description": "A new Flutter project.", | ||
"background_color": "#0E47A1", | ||
"theme_color": "#0E47A1", | ||
"description": "Made with Flutter is an open source tool that lets you know if an APK/APP was made with Flutter or not.", | ||
"orientation": "portrait-primary", | ||
"prefer_related_applications": false, | ||
"icons": [ | ||
{ | ||
"src": "icons/Icon-192.png", | ||
"src": "icons/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "icons/Icon-512.png", | ||
"src": "icons/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "icons/Icon-maskable-192.png", | ||
"sizes": "192x192", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
}, | ||
{ | ||
"src": "icons/Icon-maskable-512.png", | ||
"sizes": "512x512", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
} | ||
] | ||
} | ||
} |