Skip to content

Commit

Permalink
feat: platform page add
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Nov 3, 2022
1 parent 268c7c2 commit 62447c3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/src/platform_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:platform_ui/platform_ui.dart';

class PlatformPage extends Page {
final Widget child;
final bool fullscreenDialog;
const PlatformPage({
required this.child,
this.fullscreenDialog = false,
super.key,
super.name,
super.arguments,
super.restorationId,
});

@override
Route createRoute(BuildContext context) {
return PlatformPageRoute(
builder: (context) => child,
fullscreenDialog: fullscreenDialog,
settings: this,
);
}
}

0 comments on commit 62447c3

Please sign in to comment.