convert pngs & gifs to webps
|
Before Width: | Height: | Size: 270 KiB |
BIN
firka/assets/images/background.webp
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 951 KiB |
BIN
firka/assets/images/carousel/slide1.webp
Normal file
|
After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 87 KiB |
BIN
firka/assets/images/carousel/slide1_background.webp
Normal file
|
After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 873 KiB |
BIN
firka/assets/images/carousel/slide2.webp
Normal file
|
After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 73 KiB |
BIN
firka/assets/images/carousel/slide2_background.webp
Normal file
|
After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 925 KiB |
BIN
firka/assets/images/carousel/slide3.webp
Normal file
|
After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
BIN
firka/assets/images/carousel/slide3_foreground.webp
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 440 KiB |
BIN
firka/assets/images/carousel/slide4.webp
Normal file
|
After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 38 KiB |
BIN
firka/assets/images/carousel/slide4_background.webp
Normal file
|
After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 10 KiB |
BIN
firka/assets/images/icons/ace.webp
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 25 KiB |
BIN
firka/assets/images/icons/ace_f.webp
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 12 KiB |
BIN
firka/assets/images/icons/bi.webp
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 39 KiB |
BIN
firka/assets/images/icons/bi_f.webp
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 30 KiB |
BIN
firka/assets/images/icons/cactus.webp
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
BIN
firka/assets/images/icons/cc.webp
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 12 KiB |
BIN
firka/assets/images/icons/enby.webp
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 31 KiB |
BIN
firka/assets/images/icons/enby_f.webp
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 28 KiB |
BIN
firka/assets/images/icons/fidesz.webp
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 20 KiB |
BIN
firka/assets/images/icons/filc.webp
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 18 KiB |
BIN
firka/assets/images/icons/filco.webp
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 39 KiB |
BIN
firka/assets/images/icons/galaxy.webp
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 12 KiB |
BIN
firka/assets/images/icons/gay.webp
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 36 KiB |
BIN
firka/assets/images/icons/gay_f.webp
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 10 KiB |
BIN
firka/assets/images/icons/kreta.webp
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 12 KiB |
BIN
firka/assets/images/icons/lesb.webp
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 36 KiB |
BIN
firka/assets/images/icons/lesb_f.webp
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 12 KiB |
BIN
firka/assets/images/icons/lgbtq.webp
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 40 KiB |
BIN
firka/assets/images/icons/lgbtq_f.webp
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 25 KiB |
BIN
firka/assets/images/icons/lgbtqp.webp
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 41 KiB |
BIN
firka/assets/images/icons/lgbtqp_f.webp
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 19 KiB |
BIN
firka/assets/images/icons/mkkp.webp
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 34 KiB |
BIN
firka/assets/images/icons/modern.webp
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 22 KiB |
BIN
firka/assets/images/icons/o1g.webp
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 15 KiB |
BIN
firka/assets/images/icons/original.webp
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 45 KiB |
BIN
firka/assets/images/icons/paper.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 16 KiB |
BIN
firka/assets/images/icons/pixel.webp
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 13 KiB |
BIN
firka/assets/images/icons/pixelized.webp
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 19 KiB |
BIN
firka/assets/images/icons/refilc.webp
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 13 KiB |
BIN
firka/assets/images/icons/refulc.webp
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 14 KiB |
BIN
firka/assets/images/icons/repont.webp
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 11 KiB |
BIN
firka/assets/images/icons/trans.webp
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 34 KiB |
BIN
firka/assets/images/icons/trans_f.webp
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 9.1 KiB |
BIN
firka/assets/images/icons/void_icon.webp
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 39 KiB |
BIN
firka/assets/images/icons/xmas1.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 27 KiB |
BIN
firka/assets/images/icons/xmas2.webp
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 31 KiB |
BIN
firka/assets/images/icons/xmas3.webp
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 38 KiB |
BIN
firka/assets/images/logos/colored_logo.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,7 @@
|
||||
flutter_launcher_icons:
|
||||
generate: true
|
||||
android: "launcher_icon"
|
||||
image_path: "assets/images/logos/colored_logo.png"
|
||||
image_path: "assets/images/logos/colored_logo.webp"
|
||||
adaptive_icon_monochrome: "assets/images/logos/monochrome_logo.png"
|
||||
adaptive_icon_background: "assets/images/logos/colored_logo_without_mustache.png"
|
||||
adaptive_icon_foreground: "assets/images/logos/colored_logo_only_mustache.png"
|
||||
|
||||
@@ -16,7 +16,7 @@ Future<void> pickProfilePicture(
|
||||
|
||||
var dataDir = await getApplicationDocumentsDirectory();
|
||||
var bytes = encodePng(resized);
|
||||
await File(p.join(dataDir.path, "profile.png")).writeAsBytes(bytes);
|
||||
await File(p.join(dataDir.path, "profile.webp")).writeAsBytes(bytes);
|
||||
|
||||
data.profilePicture = bytes;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ Future<AppInitialization> initializeApp() async {
|
||||
}
|
||||
|
||||
final dataDir = await getApplicationDocumentsDirectory();
|
||||
var pfpFile = File(p.join(dataDir.path, "profile.png"));
|
||||
var pfpFile = File(p.join(dataDir.path, "profile.webp"));
|
||||
|
||||
if (await pfpFile.exists()) {
|
||||
init.profilePicture = await pfpFile.readAsBytes();
|
||||
|
||||
@@ -49,14 +49,14 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
final firkaBundle = FirkaBundle();
|
||||
|
||||
await precacheAssets(firkaBundle, [
|
||||
"assets/images/carousel/slide1.png",
|
||||
"assets/images/carousel/slide1_background.gif",
|
||||
"assets/images/carousel/slide2.png",
|
||||
"assets/images/carousel/slide2_background.gif",
|
||||
"assets/images/carousel/slide3.png",
|
||||
"assets/images/carousel/slide3_foreground.gif",
|
||||
"assets/images/carousel/slide4.png",
|
||||
"assets/images/carousel/slide4_background.gif"
|
||||
"assets/images/carousel/slide1.webp",
|
||||
"assets/images/carousel/slide1_background.webp",
|
||||
"assets/images/carousel/slide2.webp",
|
||||
"assets/images/carousel/slide2_background.webp",
|
||||
"assets/images/carousel/slide3.webp",
|
||||
"assets/images/carousel/slide3_foreground.webp",
|
||||
"assets/images/carousel/slide4.webp",
|
||||
"assets/images/carousel/slide4_background.webp"
|
||||
]);
|
||||
|
||||
setState(() {
|
||||
@@ -79,8 +79,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
{
|
||||
'title': widget.data.l10n.title1,
|
||||
'subtitle': widget.data.l10n.subtitle1,
|
||||
'picture': 'assets/images/carousel/slide1.png',
|
||||
'background': 'assets/images/carousel/slide1_background.gif',
|
||||
'picture': 'assets/images/carousel/slide1.webp',
|
||||
'background': 'assets/images/carousel/slide1_background.webp',
|
||||
'foreground': '',
|
||||
'rotation': 180.00,
|
||||
// „Mi nekünk két szám típusunk van, int (egy 32 bites szám) meg a double (egy 64 bites tört szám), KURVA ANYÁDAT”
|
||||
@@ -91,8 +91,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
{
|
||||
'title': widget.data.l10n.title2,
|
||||
'subtitle': widget.data.l10n.subtitle2,
|
||||
'picture': 'assets/images/carousel/slide2.png',
|
||||
'background': 'assets/images/carousel/slide2_background.gif',
|
||||
'picture': 'assets/images/carousel/slide2.webp',
|
||||
'background': 'assets/images/carousel/slide2_background.webp',
|
||||
'foreground': '',
|
||||
'rotation': 180.00,
|
||||
//Mivel radiáns, és nullával nem lehet osztani (remélem tudtad), ezért ha eggyel osztunk akkor egy marad
|
||||
@@ -103,9 +103,9 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
{
|
||||
'title': widget.data.l10n.title3,
|
||||
'subtitle': widget.data.l10n.subtitle3,
|
||||
'picture': 'assets/images/carousel/slide3.png',
|
||||
'picture': 'assets/images/carousel/slide3.webp',
|
||||
'background': '',
|
||||
'foreground': 'assets/images/carousel/slide3_foreground.gif',
|
||||
'foreground': 'assets/images/carousel/slide3_foreground.webp',
|
||||
'rotation': 180.0,
|
||||
'scale': 0.8,
|
||||
'x': 0.00,
|
||||
@@ -114,8 +114,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
{
|
||||
'title': widget.data.l10n.title4,
|
||||
'subtitle': widget.data.l10n.subtitle4,
|
||||
'picture': 'assets/images/carousel/slide4.png',
|
||||
'background': 'assets/images/carousel/slide4_background.gif',
|
||||
'picture': 'assets/images/carousel/slide4.webp',
|
||||
'background': 'assets/images/carousel/slide4_background.webp',
|
||||
'foreground': '',
|
||||
'rotation': 180.00,
|
||||
'scale': 1.35,
|
||||
@@ -147,7 +147,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
image: DecorationImage(
|
||||
image: CacheMemoryImageProvider(
|
||||
DefaultAssetBundle.of(context),
|
||||
'assets/images/logos/colored_logo.png'),
|
||||
'assets/images/logos/colored_logo.webp'),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
@@ -234,7 +234,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
widgets.add(Container(
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/images/background.png'),
|
||||
image: AssetImage('assets/images/background.webp'),
|
||||
fit: BoxFit.cover),
|
||||
borderRadius: BorderRadius.all(Radius.circular(16)),
|
||||
),
|
||||
@@ -249,7 +249,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
borderRadius:
|
||||
const BorderRadius.all(Radius.circular(16.0)),
|
||||
child: Image.asset(
|
||||
"assets/images/icons/$activeIcon.png",
|
||||
"assets/images/icons/$activeIcon.webp",
|
||||
width: 74,
|
||||
height: 74,
|
||||
),
|
||||
@@ -304,7 +304,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
borderRadius:
|
||||
const BorderRadius.all(Radius.circular(12.0)),
|
||||
child: Image.asset(
|
||||
"assets/images/icons/$icon.png",
|
||||
"assets/images/icons/$icon.webp",
|
||||
width: 48,
|
||||
height: 48,
|
||||
),
|
||||
@@ -315,7 +315,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
borderRadius:
|
||||
const BorderRadius.all(Radius.circular(16.0)),
|
||||
child: Image.asset(
|
||||
"assets/images/icons/$icon.png",
|
||||
"assets/images/icons/$icon.webp",
|
||||
width: 54,
|
||||
height: 54,
|
||||
),
|
||||
|
||||
@@ -130,7 +130,7 @@ class _WearLoginScreenState extends State<WearLoginScreen> {
|
||||
decoration: ShapeDecoration(
|
||||
image: const DecorationImage(
|
||||
image: AssetImage(
|
||||
'assets/images/logos/colored_logo.png'),
|
||||
'assets/images/logos/colored_logo.webp'),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||