Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Temporary Disable Edit button until feature can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Teifun2 committed Aug 15, 2020
1 parent 34de89e commit a280334
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions lib/src/screens/recipe_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:nextcloud_cookbook_flutter/src/blocs/recipe/recipe.dart';
import 'package:nextcloud_cookbook_flutter/src/models/recipe.dart';
import 'package:nextcloud_cookbook_flutter/src/models/recipe_short.dart';
import 'package:nextcloud_cookbook_flutter/src/screens/recipe_edit_screen.dart';
import 'package:nextcloud_cookbook_flutter/src/widget/authentication_cached_network_image.dart';
import 'package:nextcloud_cookbook_flutter/src/widget/duration_indicator.dart';
import 'package:url_launcher/url_launcher.dart';
Expand Down Expand Up @@ -39,23 +38,23 @@ class RecipeScreenState extends State<RecipeScreen> {
appBar: AppBar(
title: Text("Recipe"),
),
floatingActionButton: FloatingActionButton(
onPressed: () {
if (state is RecipeLoadSuccess) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) {
return BlocProvider.value(
value: recipeBloc,
child: RecipeEditScreen(state.recipe));
},
),
);
}
},
child: Icon(Icons.edit),
),
// floatingActionButton: FloatingActionButton(
// onPressed: () {
// if (state is RecipeLoadSuccess) {
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) {
// return BlocProvider.value(
// value: recipeBloc,
// child: RecipeEditScreen(state.recipe));
// },
// ),
// );
// }
// },
// child: Icon(Icons.edit),
// ),
body: () {
if (state is RecipeLoadSuccess) {
return _buildRecipeScreen(state.recipe);
Expand Down

0 comments on commit a280334

Please sign in to comment.