1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

[platform_channels] adds BasicMessageChannel Demo (#484)

This commit is contained in:
Ayush Bherwani
2020-07-11 05:41:52 +05:30
committed by GitHub
parent 9140559040
commit 03008a5d19
8 changed files with 426 additions and 5 deletions

View File

@@ -3,6 +3,8 @@
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:platform_channels/src/add_pet_details.dart';
import 'package:platform_channels/src/pet_list_screen.dart';
import 'package:platform_channels/src/event_channel_demo.dart';
import 'package:platform_channels/src/method_channel_demo.dart';
import 'package:platform_channels/src/platform_image_demo.dart';
@@ -19,6 +21,8 @@ class PlatformChannelSample extends StatelessWidget {
'/methodChannelDemo': (context) => MethodChannelDemo(),
'/eventChannelDemo': (context) => EventChannelDemo(),
'/platformImageDemo': (context) => PlatformImageDemo(),
'/petListScreen': (context) => PetListScreen(),
'/addPetDetails': (context) => AddPetDetails(),
},
title: 'Platform Channel Sample',
home: HomePage(),
@@ -47,6 +51,10 @@ List<DemoInfo> demoList = [
DemoInfo(
'Platform Image Demo',
'/platformImageDemo',
),
DemoInfo(
'BasicMessageChannel Demo',
'/petListScreen',
)
];