Skip to content

Instantly share code, notes, and snippets.

@soeleman
soeleman / Image Send
Created July 23, 2021 17:12
ImagePicker then Send via Post
File _image;
Future cameraImage() async {
var image = await ImagePicker.pickImage(
source: ImageSource.camera,
maxHeight: 240.0,
maxWidth: 240.0,
);
setState(() {
@soeleman
soeleman / Flutter HttpClient
Created July 22, 2021 18:47
Sample HttpClient Flutter
import 'dart:convert';
import 'dart:io';
class ApiProvider {
final Uri uri;
final HttpClient _client = HttpClient();
ApiProvider(this.uri);
Future<String> makeGetRequest() async {
@soeleman
soeleman / ControllerModels.txt
Last active May 5, 2019 17:55
Models for Generic API Controller
using System;
public class Book
{
public Guid Id { get; set; }
public string Title { get; set; }
public string Author { get; set; }
}

Keybase proof

I hereby claim:

  • I am soeleman on github.
  • I am dede (https://keybase.io/dede) on keybase.
  • I have a public key whose fingerprint is 6735 94DD 4769 E835 8F79 845D 5AE2 4ACA 5236 4E0B

To claim this, I am signing this object:

var customers =
new List<Customer>
{
new Customer { Id = 1, Name = "ABC" },
new Customer { Id = 2, Name = "DEF" }
};
var transactions =
new List<TransactionFlow>
{