Navigine iOS/Android/Flutter SDK
1.0.0
Objective-C/Java/Dart SDK API
Loading...
Searching...
No Matches
location_view.dart
Go to the documentation of this file.
1
import
'dart:ffi'
;
2
import
'package:flutter/material.dart'
;
3
4
import
'package:navigine_sdk/platform_view.dart'
;
5
import
'package:navigine_sdk/com/navigine/idl/location_window.dart'
;
6
import
'package:navigine_sdk/com/navigine/idl/navigine_sdk.dart'
;
7
21
class
LocationView
extends
StatefulWidget {
22
const
LocationView
({Key? key, required this.
onViewCreated
, this.textDirection, }): super(key: key);
23
24
@override
25
State<StatefulWidget>
createState
() {
26
return
_LocationViewState();
27
}
28
34
final
void
Function(
LocationWindow
)
onViewCreated
;
35
final
TextDirection? textDirection;
36
}
37
38
class
_LocationViewState
extends
State<LocationView> {
39
@override
40
Widget build(BuildContext context) {
41
return
PlatformView.create(
42
(view) {
43
if
(!mounted) {
44
return
false
;
45
}
46
47
final
window =
NavigineSdk
.
getInstance
().createLocationWindow(view);
48
widget.onViewCreated(window);
49
50
return
true
;
51
},
52
textDirection: widget.textDirection,
53
);
54
}
55
}
com
location_view.dart
Generated on Tue Jul 28 2026 10:20:58 for Navigine iOS/Android/Flutter SDK by
Doxygen
1.13.2