Skip to content

Commit dd8cb70

Browse files
StreamSync : Test1
Signed-off-by: Ashutosh <am3718440@gmail.com>
1 parent 0b53c6a commit dd8cb70

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

.github/workflows/flutter-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/setup-java@v3
2727
with:
2828
distribution: 'temurin'
29-
java-version: '17'
29+
java-version: '17'
3030

3131
- name: Set up Flutter
3232
uses: subosito/flutter-action@v2
@@ -84,7 +84,7 @@ jobs:
8484
echo "Commit Message: ${{ env.COMMIT_MESSAGE }}"
8585
curl -F chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \
8686
-F document=@$(pwd)/build/app/outputs/flutter-apk/app-release.apk \
87-
-F caption="🎉 New Build Available! ✅ Commited By: ${{ env.COMMITTER_NAME }} 📝 Commit Message: ${{ env.COMMIT_MESSAGE }}. Download the file and test it." \
87+
-F caption="🎉 New Build Available! ✅ Commited By: ${{ env.COMMITTER_NAME }}\n📝 Commit Message: ${{ env.COMMIT_MESSAGE }}. Download the file and test it." \
8888
https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendDocument
8989
9090
env:
@@ -95,7 +95,7 @@ jobs:
9595
if: failure()
9696
run: |
9797
curl -F chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \
98-
-F text="⚠️ Build Failed! 🛑 Commited By: ${{ env.COMMITTER_NAME }} 📝 Commit Message: ${{ env.COMMIT_MESSAGE }}. Please check the logs for more details." \
98+
-F text="⚠️ Build Failed! 🛑 Commited By: ${{ env.COMMITTER_NAME }}\n📝 Commit Message: ${{ env.COMMIT_MESSAGE }}. Please check the logs for more details." \
9999
https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage
100100
env:
101101
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}

lib/RemoteConnectionPage.dart

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'dart:async';
22
import 'dart:typed_data';
33
import 'package:control_pad_plus/views/joystick_view.dart';
4-
import 'package:flutter/cupertino.dart';
54
import 'package:flutter/material.dart';
65
import 'package:flutter/services.dart';
76
import 'package:flutter_bluetooth_serial/flutter_bluetooth_serial.dart';
@@ -189,15 +188,15 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
189188
actions: <Widget>[
190189
IconButton(
191190
icon: const Icon(
192-
CupertinoIcons.refresh_circled,
191+
Icons.refresh_rounded,
193192
color: Colors.white,
194193
),
195-
onPressed: isConnected ? null : () => connectToBluetooth(),
194+
onPressed: () => close(),
196195
),
197196
IconButton(
198-
icon: const Icon(CupertinoIcons.clear_circled,
197+
icon: const Icon(Icons.close_rounded,
199198
color: Colors.white),
200-
onPressed: () => close(),
199+
onPressed: isConnected ? null : () => connectToBluetooth(),
201200
),
202201
],
203202
),
@@ -227,15 +226,15 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
227226
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
228227
children: <Widget>[
229228
_buildCircularButton(
230-
icon: CupertinoIcons.volume_off,
229+
icon: Icons.volume_mute,
231230
onPressed: () => muteVolume(),
232231
),
233232
_buildCircularButton(
234-
icon: CupertinoIcons.volume_down,
233+
icon: Icons.volume_down,
235234
onPressed: () => decreaseVol(),
236235
),
237236
_buildCircularButton(
238-
icon: CupertinoIcons.volume_up,
237+
icon: Icons.volume_up,
239238
onPressed: () => increaseVol(),
240239
),
241240
_buildCircularButton(
@@ -342,7 +341,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
342341
delta: Offset(0.0, -1.0),
343342
globalPosition: Offset(0, 0))),
344343
icon: Icon(
345-
CupertinoIcons.chevron_up,
344+
Icons.keyboard_arrow_up,
346345
color: Colors.white,
347346
),
348347
iconSize: 20,
@@ -361,7 +360,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
361360
delta: Offset(0.0, 1.0),
362361
globalPosition: Offset(0, 0))),
363362
icon: Icon(
364-
CupertinoIcons.chevron_down,
363+
Icons.keyboard_arrow_down,
365364
color: Colors.white,
366365
),
367366
iconSize: 20,
@@ -388,7 +387,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
388387
children: <Widget>[
389388
IconButton(
390389
icon: const Icon(
391-
CupertinoIcons.arrow_left_square_fill,
390+
Icons.arrow_back,
392391
color: Color(0xff00416a),
393392
),
394393
iconSize: (MediaQuery
@@ -400,7 +399,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
400399
),
401400
IconButton(
402401
icon: const Icon(
403-
CupertinoIcons.delete_left_fill,
402+
Icons.backspace,
404403
color: Color(0xff00416a),
405404
),
406405
iconSize: (MediaQuery
@@ -412,7 +411,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
412411
),
413412
IconButton(
414413
icon: const Icon(
415-
CupertinoIcons.arrow_left,
414+
Icons.arrow_back_ios,
416415
color: Color(0xff00416a),
417416
),
418417
iconSize: (MediaQuery
@@ -423,7 +422,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
423422
tooltip: 'Next',
424423
),
425424
IconButton(
426-
icon: const Icon(CupertinoIcons.arrow_right,
425+
icon: const Icon(Icons.arrow_forward_ios,
427426
color: Color(0xff00416a)),
428427
iconSize: (MediaQuery
429428
.of(context)
@@ -434,7 +433,7 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
434433
),
435434
IconButton(
436435
icon: const Icon(
437-
CupertinoIcons.escape,
436+
Icons.close,
438437
color: Color(0xff00416a),
439438
),
440439
iconSize: (MediaQuery
@@ -476,7 +475,15 @@ class _RemoteConnectionPageState extends State<RemoteConnectionPage> {
476475
onSubmitted:submit ,
477476
enabled: isConnected,
478477
))),
479-
478+
Container(
479+
margin: const EdgeInsets.all(8.0),
480+
child: IconButton(
481+
icon: const Icon(Icons.send),
482+
onPressed: isConnected
483+
? () => _sendStringToType(textEditingController.text)
484+
: null
485+
),
486+
),
480487
],
481488
),
482489
]

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ dependencies:
4545
control_pad_plus: ^0.1.0
4646
device_info_plus: ^10.1.2
4747

48-
4948
dev_dependencies:
5049
flutter_test:
5150
sdk: flutter

0 commit comments

Comments
 (0)