mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
CardView: Fix top padding
It should be part of the list and go away when scrolling.
This commit is contained in:
@ -44,11 +44,9 @@ class CardView extends StatelessWidget {
|
||||
staggeredTileBuilder: (int i) => const StaggeredTile.fit(2),
|
||||
mainAxisSpacing: 8.0,
|
||||
crossAxisSpacing: 8.0,
|
||||
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
|
||||
);
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
|
||||
child: gridView,
|
||||
);
|
||||
return gridView;
|
||||
}
|
||||
}
|
||||
|
@ -39,12 +39,10 @@ class GridFolderView extends StatelessWidget {
|
||||
),
|
||||
itemBuilder: _buildItem,
|
||||
itemCount: folder.notes.length,
|
||||
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
|
||||
);
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
|
||||
child: gridView,
|
||||
);
|
||||
return gridView;
|
||||
}
|
||||
|
||||
Widget _buildItem(BuildContext context, int i) {
|
||||
|
Reference in New Issue
Block a user