Sfoglia il codice sorgente

Remove unnecessary padding

Vishnu 4 anni fa
parent
commit
d9ce124f6b
2 ha cambiato i file con 7 aggiunte e 10 eliminazioni
  1. 3 3
      lib/core/configuration.dart
  2. 4 7
      lib/ui/detail_page.dart

+ 3 - 3
lib/core/configuration.dart

@@ -254,9 +254,9 @@ class Configuration {
   }
 
   String getHttpEndpoint() {
-    if (kDebugMode) {
-      return "http://192.168.1.123:8080";
-    }
+    // if (kDebugMode) {
+    //   return "http://192.168.1.123:8080";
+    // }
     return "https://api.ente.io";
   }
 

+ 4 - 7
lib/ui/detail_page.dart

@@ -351,13 +351,10 @@ class _DetailPageState extends State<DetailPage> {
       },
     ));
     return AppBar(
-      title: Padding(
-        padding: const EdgeInsets.only(top: 6),
-        child: Text(
-          getDayTitle(_files[_selectedIndex].creationTime),
-          style: TextStyle(
-            fontSize: 14,
-          ),
+      title: Text(
+        getDayTitle(_files[_selectedIndex].creationTime),
+        style: TextStyle(
+          fontSize: 14,
         ),
       ),
       actions: actions,