unify_uni_page 0.0.6
unify_uni_page: ^0.0.6 copied to clipboard
A lightweight Flutter library for seamless integration of native pages using PlatformView. Provides a unified UniPage interface for Android and iOS, enabling easy embedding of native views in Flutter apps.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:unify_uni_page_example/page/flutter_hello_page.dart';
import 'package:unify_uni_page_example/unipage/uni_page_demo.dart';
import 'home_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(routes: {
'/demo': (context) => const UniPageDemo(),
'/hello': (context) => const FlutterHelloPage(),
}, home: const HomePage());
}
}