Slide 1

Slide 1 text

Pwani Pwani Nairobi

Slide 2

Slide 2 text

Flutter is an open source framework by Google for building beautiful, natively compiled, multi-platform applications from a single codebase. Oh hey Flutter! Nairobi

Slide 3

Slide 3 text

Fast Flutter code compiles to ARM or Intel machine code as well as JavaScript, for fast performance on any device. Pwani

Slide 4

Slide 4 text

Mechanism used to establish communication between Flutter and the host platform. This involves sending message from the host platform to handle necessary logic expecting a success or failure response. Platform Channels Nairobi

Slide 5

Slide 5 text

Nairobi

Slide 6

Slide 6 text

Method Channel ● A named channel that process its message in asynchronous way. ● Best for one-time task Event Channel ● A named channel that process its message using stream. ● Best for tasks that need frequent updates e.g motion sensor Major implementation Nairobi

Slide 7

Slide 7 text

Nairobi

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Nairobi

Slide 11

Slide 11 text

Method Channel - Geolocation - Alarm sensors - Notification sounds - Accessing device USSD - Android and/ iOS wear watches - Home Screen Widget. Use cases of Platform Channel Nairobi

Slide 12

Slide 12 text

Method Channel - Geolocation - Alarm sensors - Notification sounds - Accessing device USSD - Android and/ iOS wear watches - Home Screen Widget. Use cases of Platform Channel Nairobi

Slide 13

Slide 13 text

Are there any communication channels? Pwani

Slide 14

Slide 14 text

Pigeon Package ● A code generation tool, which generates all code needed for communication between Dart and Native platforms. ● Best suited for large scale applications. ● Saves development time ● It supports - Kotlin and Java - Swift and Objective-C - C++ Nairobi

Slide 15

Slide 15 text

Foreign Function Interface (FFI) ● This enables C APIs to be used directly from Dart on the same thread thus making it more of performant channel. ● It supports languages that can be compiled to C in Dart like:- - Java - Swift - Objective-C - C++ - Rust - Go ● Best suited for application that require high performance Nairobi

Slide 16

Slide 16 text

Nairobi

Slide 17

Slide 17 text

Nairobi

Slide 18

Slide 18 text

Nairobi

Slide 19

Slide 19 text

Nairobi