prasule/lib/pw/platformroute.dart
2023-11-01 17:58:05 +01:00

9 lines
290 B
Dart

import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
Route<T> platformRoute<T>(Widget Function(BuildContext) builder) =>
(Platform.isIOS)
? CupertinoPageRoute<T>(builder: builder)
: MaterialPageRoute<T>(builder: builder);