Last updated:
0 purchases
klutter platfrom verify
Features #
Use Eazy This Package
Usage #
Include short and useful examples for package users. Add longer examples
to /example folder.
import 'package:flutter/material.dart';
import 'package:klutter_platfrom_verify/klutter_platfrom_verify.dart';
import 'pages/android.dart';
import 'pages/fuchsia.dart';
import 'pages/ios.dart';
import 'pages/linux.dart';
import 'pages/macOs.dart';
import 'pages/web.dart';
import 'pages/windows.dart';
void main() {
runApp(
const MaterialApp(
home: MyApp(),
),
);
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
if (isAndroid()) {
return const AndroidPage();
}
if (isIOS()) {
return const IosPage();
}
if (isWeb()) {
return const WebPage();
}
if (isWindows()) {
return const WindowsPage();
}
if (isLinux()) {
return const LinuxPage();
}
if (isMacOS()) {
return const MacosPage();
}
if (isFuchsia()) {
return const FuchsiaPage();
}
return const SizedBox.expand();
}
}
copied to clipboard
Additional information #
The Package Help Life Eazy
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.