flutter_satang_pro_exchange 1.1.0 flutter_satang_pro_exchange: ^1.1.0 copied to clipboard
library for calling API of the https://https://satang.pro
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:flutter_satang_pro_exchange/dao/api_key/satang_pro_api_key.dart';
import 'package:flutter_satang_pro_exchange/satang_pro_exchange.dart';
import 'package:flutter_satang_pro_exchange/satang_pro_order_type.dart';
Future main() async {
SatangProExchangeService sp = SatangProExchangeService(
userId: 7892,
apiKeyUserInfo: SatangProApiKey(apiKey: "", secret: ""));
await sp.fetchMarket(printJson: true);
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('SATANG PRO'),
),
body: Center(
child: Text('SATANG PRO'),
),
),
);
}
}