This file contains hidden or 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
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| class PlatformSvg { | |
| static Widget asset(String assetName, | |
| {double width, | |
| double height, | |
| BoxFit fit = BoxFit.contain, | |
| Color color, | |
| alignment = Alignment.center, |
This file contains hidden or 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
| //example function body | |
| Map<String, dynamic> fields = { | |
| "data": filedValue, | |
| }; | |
| var request = http.MultipartRequest( | |
| "POST", Uri.parse('url'), | |
| ); | |
| request.files.add( |
OlderNewer