replaced ternary operator solution with custom adaptive_page_route.dart
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:game_tracker/core/adaptive_page_route.dart';
|
||||
import 'package:game_tracker/core/constants.dart';
|
||||
import 'package:game_tracker/core/custom_theme.dart';
|
||||
import 'package:game_tracker/data/db/database.dart';
|
||||
@@ -88,11 +87,7 @@ class _GroupsViewState extends State<GroupsView> {
|
||||
onPressed: () async {
|
||||
await Navigator.push(
|
||||
context,
|
||||
Platform.isIOS ? CupertinoPageRoute(
|
||||
builder: (context) {
|
||||
return const CreateGroupView();
|
||||
},
|
||||
) : MaterialPageRoute(
|
||||
AdaptivePageRoute(
|
||||
builder: (context) {
|
||||
return const CreateGroupView();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user