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

[platform_channels] adds Platform Image demo (#475)

This commit is contained in:
Ayush Bherwani
2020-06-20 04:28:00 +05:30
committed by GitHub
parent 70976eeb28
commit ecb5aab94d
8 changed files with 163 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
import 'package:flutter/material.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';
void main() {
runApp(PlatformChannelSample());
@@ -17,6 +18,7 @@ class PlatformChannelSample extends StatelessWidget {
routes: {
'/methodChannelDemo': (context) => MethodChannelDemo(),
'/eventChannelDemo': (context) => EventChannelDemo(),
'/platformImageDemo': (context) => PlatformImageDemo(),
},
title: 'Platform Channel Sample',
home: HomePage(),
@@ -41,6 +43,10 @@ List<DemoInfo> demoList = [
DemoInfo(
'EventChannel Demo',
'/eventChannelDemo',
),
DemoInfo(
'Platform Image Demo',
'/platformImageDemo',
)
];