Skip to content

Commit 6375664

Browse files
committed
prepare to publish package as alpha version in pub.dev
1 parent d13f2df commit 6375664

File tree

8 files changed

+364
-438
lines changed

8 files changed

+364
-438
lines changed

lib/src/Widget/main/main_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class _MainScreenState extends State<MainScreen> {
213213
child: NextPage(url: url.toString()),
214214
);
215215
}
216-
if (url != widget.url! &&
216+
if (url.toString() != widget.url! &&
217217
provider.state.isRedirected == false) {}
218218
},
219219
shouldOverrideUrlLoading: (

lib/src/Widget/main/next_screen.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import 'package:flutter_inappwebview/flutter_inappwebview.dart';
77
import 'package:flutter_on_rails/src/helpers/responds_to.dart';
88
import 'package:flutter_on_rails/src/minimal/manager/manager.dart';
99
import 'package:flutter_on_rails/src/services/run_js.dart';
10+
import 'package:logging/logging.dart';
11+
12+
// Add at the top of the file, outside any class
13+
final _logger = Logger('NextScreen');
1014

1115
class NextPage extends StatelessWidget {
1216
NextPage({super.key, required this.url});
@@ -79,13 +83,11 @@ class NextPage extends StatelessWidget {
7983
provider.state.controller!.addJavaScriptHandler(
8084
handlerName: "inputFocus",
8185
callback: (args) async {
82-
final actionJson = args[0]; // Your JSON string
83-
// provider.setNavApi(json.decode(actionJson));
86+
final actionJson = args[0];
8487
await showNativeKeyboard(json.decode(actionJson));
85-
print(
88+
_logger.info(
8689
"Received from JS: ${json.decode(actionJson.toString())}",
8790
);
88-
// You can parse and use this in Flutter
8991
},
9092
);
9193
},

0 commit comments

Comments
 (0)