Skip to content

Instantly share code, notes, and snippets.

View anta40's full-sized avatar

Andre anta40

  • Jakarta, Indonesia
  • 15:12 (UTC +07:00)
View GitHub Profile
import 'package:flutter/material.dart';
import 'package:good_driver_app/common/ExpandedButton.dart';
class TestPage01 extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
import 'package:flutter/material.dart';
import 'package:good_driver_app/common/ExpandedButton.dart';
import 'package:good_driver_app/common/SmallExpandedButton.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServiceParkingPage extends StatefulWidget {
@override
_ServiceParkingPage createState() => _ServiceParkingPage();
}
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
@override
_ServicePetrolPage createState() => _ServicePetrolPage();
}
@anta40
anta40 / dbtest1.go
Last active September 15, 2019 14:18
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"github.com/gorilla/mux"
"net/http"
@anta40
anta40 / logindemo.go
Last active September 15, 2019 15:06
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"github.com/gorilla/mux"
"net/http"
OkHttpClient httpClient = new OkHttpClient();
HttpUrl url = new HttpUrl.Builder()
.scheme("https")
.host("xxx.yyy.zzz")
.addPathSegments("/android_login_api/login.php")
.addQueryParameter("userid", userid)
.addQueryParameter("password", password)
.build();
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"net/http"
"time"
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/handlers"