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:
@@ -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',
|
||||
)
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user