- fix share - logo
This commit is contained in:
		@@ -4,7 +4,8 @@
 | 
				
			|||||||
    <application
 | 
					    <application
 | 
				
			||||||
        android:label="f0ckapp"
 | 
					        android:label="f0ckapp"
 | 
				
			||||||
        android:name="${applicationName}"
 | 
					        android:name="${applicationName}"
 | 
				
			||||||
        android:icon="@mipmap/ic_launcher">
 | 
					        android:icon="@mipmap/ic_launcher"
 | 
				
			||||||
 | 
					        android:enableOnBackInvokedCallback="true">
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name=".MainActivity"
 | 
					            android:name=".MainActivity"
 | 
				
			||||||
            android:exported="true"
 | 
					            android:exported="true"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								assets/images/f0ck_small.webp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/images/f0ck_small.webp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.6 KiB  | 
@@ -1,4 +1,5 @@
 | 
				
			|||||||
import 'dart:convert';
 | 
					import 'dart:io';
 | 
				
			||||||
 | 
					import 'dart:typed_data';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import 'package:flutter/material.dart';
 | 
					import 'package:flutter/material.dart';
 | 
				
			||||||
import 'package:cached_network_image/cached_network_image.dart';
 | 
					import 'package:cached_network_image/cached_network_image.dart';
 | 
				
			||||||
@@ -105,25 +106,25 @@ class _DetailViewState extends State<DetailView> {
 | 
				
			|||||||
        ),
 | 
					        ),
 | 
				
			||||||
        actions: [
 | 
					        actions: [
 | 
				
			||||||
          PopupMenuButton<String>(
 | 
					          PopupMenuButton<String>(
 | 
				
			||||||
            onSelected: (value) {
 | 
					            onSelected: (value) async {
 | 
				
			||||||
              final item = provider.mediaItems.elementAt(_currentIndex);
 | 
					              final item = provider.mediaItems.elementAt(_currentIndex);
 | 
				
			||||||
              switch (value) {
 | 
					              switch (value) {
 | 
				
			||||||
                case 'media':
 | 
					                case 'media':
 | 
				
			||||||
                  final params = ShareParams(
 | 
					                  File file = await DefaultCacheManager().getSingleFile(
 | 
				
			||||||
                    files: [
 | 
					                    item.mediaUrl,
 | 
				
			||||||
                      XFile.fromData(
 | 
					 | 
				
			||||||
                        utf8.encode(item.mediaUrl),
 | 
					 | 
				
			||||||
                        mimeType: item.mime,
 | 
					 | 
				
			||||||
                      ),
 | 
					 | 
				
			||||||
                    ],
 | 
					 | 
				
			||||||
                  );
 | 
					                  );
 | 
				
			||||||
                  SharePlus.instance.share(params);
 | 
					                  Uint8List bytes = await file.readAsBytes();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                  final params = ShareParams(
 | 
				
			||||||
 | 
					                    files: [XFile.fromData(bytes, mimeType: item.mime)],
 | 
				
			||||||
 | 
					                  );
 | 
				
			||||||
 | 
					                  await SharePlus.instance.share(params);
 | 
				
			||||||
                  break;
 | 
					                  break;
 | 
				
			||||||
                case 'direct_link':
 | 
					                case 'direct_link':
 | 
				
			||||||
                  SharePlus.instance.share(ShareParams(text: item.mediaUrl));
 | 
					                  await SharePlus.instance.share(ShareParams(text: item.mediaUrl));
 | 
				
			||||||
                  break;
 | 
					                  break;
 | 
				
			||||||
                case 'post_link':
 | 
					                case 'post_link':
 | 
				
			||||||
                  SharePlus.instance.share(ShareParams(text: item.postUrl));
 | 
					                  await SharePlus.instance.share(ShareParams(text: item.postUrl));
 | 
				
			||||||
                  break;
 | 
					                  break;
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,8 +47,10 @@ class _MediaGridState extends State<MediaGrid> {
 | 
				
			|||||||
    return Scaffold(
 | 
					    return Scaffold(
 | 
				
			||||||
      key: scaffoldKey,
 | 
					      key: scaffoldKey,
 | 
				
			||||||
      appBar: AppBar(
 | 
					      appBar: AppBar(
 | 
				
			||||||
        //centerTitle: true,
 | 
					        title: Image.asset(
 | 
				
			||||||
        title: Text('fApp v${AppVersion.version}'),
 | 
					          'assets/images/f0ck_small.webp',
 | 
				
			||||||
 | 
					          fit: BoxFit.fitHeight,
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
        actions: [
 | 
					        actions: [
 | 
				
			||||||
          IconButton(
 | 
					          IconButton(
 | 
				
			||||||
            icon: Icon(
 | 
					            icon: Icon(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 | 
				
			|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
					# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
				
			||||||
# In Windows, build-name is used as the major, minor, and patch parts
 | 
					# In Windows, build-name is used as the major, minor, and patch parts
 | 
				
			||||||
# of the product and file versions while build-number is used as the build suffix.
 | 
					# of the product and file versions while build-number is used as the build suffix.
 | 
				
			||||||
version: 1.1.0+30
 | 
					version: 1.1.1+31
 | 
				
			||||||
 | 
					
 | 
				
			||||||
environment:
 | 
					environment:
 | 
				
			||||||
  sdk: ^3.9.0-100.2.beta
 | 
					  sdk: ^3.9.0-100.2.beta
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user