Skip to content

Commit 94513a3

Browse files
committed
updated simple_frame_app to 2.0.0 to be able to automatically connect and run on app startup
1 parent edce064 commit 94513a3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/main.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ class MainAppState extends State<MainApp> with SimpleFrameAppState {
6767
void initState() {
6868
super.initState();
6969

70-
_loadPrefs();
70+
// load up the saved text field data
71+
_loadPrefs()
72+
// then kick off the connection to Frame and start the app if possible
73+
.then((_) => tryScanAndConnectAndStart(andRun: true));
7174
}
7275

7376
Future<void> _loadPrefs() async {

pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,10 @@ packages:
444444
dependency: "direct main"
445445
description:
446446
name: simple_frame_app
447-
sha256: "256d6a1b6a194745bdfe004e6016a871a4936cd92152067cbc656339b267cf3c"
447+
sha256: ecd3e06d5f83afaf43f643454d264258a1c90209bc55e817ddf686dfc87ad43b
448448
url: "https://pub.dev"
449449
source: hosted
450-
version: "1.0.1"
450+
version: "2.0.0"
451451
sky_engine:
452452
dependency: transitive
453453
description: flutter

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
sdk: flutter
1212
logging: ^1.2.0
1313
google_speech: ^5.3.0
14-
simple_frame_app: ^1.0.1
14+
simple_frame_app: ^2.0.0
1515
shared_preferences: ^2.3.2
1616
share_plus: ^10.1.0
1717

0 commit comments

Comments
 (0)