Skip to content

Fitem/flutter_util_code

Repository files navigation

flutter_util_code

Pub

A Flutter utility class collection library that includes some commonly used functions and encapsulated system API calls to improve development efficiency.

Language: English | 简体中文

NativeBridge dependency

Add dependencies in pubspec.yaml:

dependencies:
  flutter_util_code: ^latest_version

Support Environment

  • sdk: ">=2.18.0 <4.0.0"
  • flutter: ">=3.3.0"

APIs

isOpenLog 
println   
logger 		
putString 		
putInt				
putBool				
putDouble			
putStringList	
getString			
getInt				
getDouble			
getBool				
getStringList	
init			 
showCenter 
show			 
showToast	 
getUuid		
getUuidV1	
getUuidV4	
getUuidV5	
getDeviceId			 
getModel				 
getSystemVersion 
getSystemName		 
getBrand				 
getAppName		 	  
getPackageName 	  
getVersionName    
getVersionNumber  
getBuildSignature 
getInstallerStore 
getAppCachePath       			 
getAppSupportPath     			 
getAppDocPath         			 
getDownloadPath       		 	 
getAndroidStoragePath        
getAndroidExternalCachePaths 
getAppExternalStoragePaths   
getAndroidPicturePaths 			 
getAndroidMoviePaths 				 
getAndroidMusicPaths 				 
getAndroidDCIMPaths     		 
getAndroidDownloadPaths 		 
getAndroidDocumentPaths 		 
md5Encrypt 					
rc4Encrypt 					
rc4Decrypt 					
aesEncrypt 					
aesDecrypt 					
rsaEncrypt 					
rsaDecrypt 					
sha256withRSASign 	
sha256withRSAVerify 
md5withRSASign 			
md5withRSAVerify 		
launchInBrowser 		
launchInNonBrowser  
launchInApp 				
onCloseInAppWebView 
onCall 							
sendSMS 						
sendEmail 					
openFile 						
onCanLaunchUrl 			
String
toNonNull 			 
isNullOrEmpty 	 
isNotNullOrEmpty 
toNonNullString  
int
toNonNull 	 
isNull 			 
isNotNull 	 
toNonNullInt 
double
toNonNull 			
isNull 				 	
isNotNull       
toNonNullDouble 
bool
toNonNull			
isNull 				
isNotNull 		
toNonNullBool 
List
toNonNull 			 
isNullOrEmpty 	 
isNotNullOrEmpty 
toNonNullList 	 
shareText 	
shareImage  
shareImages 
shareFile 	
shareFiles 	
getInstance 			
checkConnectivity 
listen 						
off 							
dispose 					
getPermissionStatus 
requestPermission  	
requestPermissions 	
formatMoney
formatPoint
formatPointMax
formatInt
formatPercent
formatPermillage

Utils(Continue to update later...)