Ver Fonte

Add ability to favorite even shared files

Vishnu Mohandas há 4 anos atrás
pai
commit
7f3602c5cc
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      lib/ui/detail_page.dart

+ 1 - 3
lib/ui/detail_page.dart

@@ -115,9 +115,7 @@ class _DetailPageState extends State<DetailPage> {
 
 
   AppBar _buildAppBar() {
   AppBar _buildAppBar() {
     final actions = List<Widget>();
     final actions = List<Widget>();
-    if (_files[_selectedIndex].localID != null) {
-      actions.add(_getFavoriteButton());
-    }
+    actions.add(_getFavoriteButton());
     actions.add(PopupMenuButton(
     actions.add(PopupMenuButton(
       itemBuilder: (context) {
       itemBuilder: (context) {
         return [
         return [