Skip to content

Commit 2259ced

Browse files
authored
Create Dkwin signal Big Small
Extended description: This app connects to the WinGo 30S live market API and displays Big/Small signals in real-time. It updates every 5 seconds and highlights Big in green and Small in red. No Telegram or extra setup required.
1 parent b37ba3a commit 2259ced

1 file changed

Lines changed: 138 additions & 0 deletions

File tree

Dkwin signal Big Small

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
wingo_signal_app/
2+
├── android/
3+
├── ios/
4+
├── lib/
5+
│ └── main.dart
6+
├── pubspec.yaml
7+
├── README.mdname: wingo_signal_app
8+
description: WinGo Live Big/Small Signal App
9+
version: 1.0.0+1
10+
environment:
11+
sdk: ">=2.19.0 <3.0.0"
12+
13+
dependencies:
14+
flutter:
15+
sdk: flutter
16+
http: ^1.1.0
17+
flutter_spinkit: ^5.1.0
18+
19+
dev_dependencies:
20+
flutter_test:
21+
sdk: flutter
22+
23+
flutter:
24+
uses-material-design: trueimport 'dart:async';
25+
import 'dart:convert';
26+
import 'package:flutter/material.dart';
27+
import 'package:http/http.dart' as http;
28+
import 'package:flutter_spinkit/flutter_spinkit.dart';
29+
30+
void main() {
31+
runApp(WinGoSignalApp());
32+
}
33+
34+
class WinGoSignalApp extends StatelessWidget {
35+
@override
36+
Widget build(BuildContext context) {
37+
return MaterialApp(
38+
title: 'WinGo Live Signal',
39+
theme: ThemeData(
40+
primarySwatch: Colors.blue,
41+
),
42+
home: SignalHomePage(),
43+
);
44+
}
45+
}
46+
47+
class SignalHomePage extends StatefulWidget {
48+
@override
49+
_SignalHomePageState createState() => _SignalHomePageState();
50+
}
51+
52+
class _SignalHomePageState extends State<SignalHomePage> {
53+
String _latestSignal = 'Loading...';
54+
String _latestRound = '';
55+
Timer? _timer;
56+
57+
final String apiUrl = "https://draw.ar-lottery01.com/WinGo/WinGo_30S/GetHistoryIssuePage.json";
58+
59+
@override
60+
void initState() {
61+
super.initState();
62+
_fetchSignal();
63+
_timer = Timer.periodic(Duration(seconds: 5), (_) => _fetchSignal());
64+
}
65+
66+
Future<void> _fetchSignal() async {
67+
try {
68+
final response = await http.get(Uri.parse(apiUrl));
69+
if (response.statusCode == 200) {
70+
final data = json.decode(response.body)['data'];
71+
if (data != null && data.length > 0) {
72+
final latest = data[0];
73+
setState(() {
74+
_latestRound = latest['issue'] ?? '';
75+
_latestSignal = latest['result'] ?? '';
76+
});
77+
}
78+
} else {
79+
setState(() => _latestSignal = 'Error fetching data');
80+
}
81+
} catch (e) {
82+
setState(() => _latestSignal = 'Error: $e');
83+
}
84+
}
85+
86+
@override
87+
void dispose() {
88+
_timer?.cancel();
89+
super.dispose();
90+
}
91+
92+
@override
93+
Widget build(BuildContext context) {
94+
return Scaffold(
95+
appBar: AppBar(
96+
title: Text('WinGo Live Signal'),
97+
),
98+
body: Center(
99+
child: Column(
100+
mainAxisAlignment: MainAxisAlignment.center,
101+
children: [
102+
Text(
103+
'Latest Round: $_latestRound',
104+
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
105+
),
106+
SizedBox(height: 20),
107+
Text(
108+
'Signal: $_latestSignal',
109+
style: TextStyle(
110+
fontSize: 36,
111+
fontWeight: FontWeight.bold,
112+
color: _latestSignal == 'Big' ? Colors.green : Colors.red,
113+
),
114+
),
115+
SizedBox(height: 50),
116+
SpinKitFadingCircle(
117+
color: Colors.blue,
118+
size: 50.0,
119+
),
120+
],
121+
),
122+
),
123+
);
124+
}
125+
}# WinGo Live Signal App
126+
127+
এই অ্যাপটি সরাসরি WinGo লাইভ মার্কেটের সাথে কানেক্ট করে Big/Small সিগন্যাল দেখায়।
128+
129+
## ব্যবহার:
130+
1. Flutter SDK এবং Android Studio ইনস্টল করুন।
131+
2. প্রোজেক্টটি Android Studio-তে খুলুন।
132+
3. Terminal-এ `flutter pub get` রান করুন।
133+
4. Android Studio থেকে “Build APK” ক্লিক করুন।
134+
5. তৈরি APK ফোনে ইনস্টল করুন।
135+
136+
## লক্ষ্য:
137+
- প্রতি ৫ সেকেন্ডে নতুন রাউন্ড চেক করে signal আপডেট হবে।
138+
- Big = Green, Small = Red।

0 commit comments

Comments
 (0)