changed left padding of section title to 16px
This commit is contained in:
parent
b1a17e0cec
commit
705f558f9c
3 changed files with 12 additions and 19 deletions
|
@ -585,7 +585,7 @@ class DeviceFolderIcon extends StatelessWidget {
|
|||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.subtitle1
|
||||
.copyWith(fontSize: 12, fontFamily: "Inter"),
|
||||
.copyWith(fontSize: 12),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
|
@ -610,10 +610,8 @@ class CollectionItem extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
TextStyle albumTitleTextStyle = Theme.of(context)
|
||||
.textTheme
|
||||
.subtitle1
|
||||
.copyWith(fontSize: 14, fontFamily: "Inter");
|
||||
TextStyle albumTitleTextStyle =
|
||||
Theme.of(context).textTheme.subtitle1.copyWith(fontSize: 14);
|
||||
final double sideOfThumbnail =
|
||||
(MediaQuery.of(context).size.width / 2) - 18.5;
|
||||
return GestureDetector(
|
||||
|
@ -690,9 +688,7 @@ class SectionTitle extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
// margin: EdgeInsets.fromLTRB(24, 12, 0, 0),
|
||||
margin: EdgeInsets.fromLTRB(
|
||||
(title == "Incoming" || title == "Outgoing") ? 16 : 24, 12, 0, 0),
|
||||
margin: EdgeInsets.fromLTRB(16, 12, 0, 0),
|
||||
child: Column(
|
||||
children: [
|
||||
Align(
|
||||
|
|
|
@ -8,7 +8,6 @@ Widget nothingToSeeHere({Color textColor}) {
|
|||
child: Text(
|
||||
"Nothing to see here! 👀",
|
||||
style: TextStyle(
|
||||
fontFamily: "Inter",
|
||||
color: textColor.withOpacity(0.35),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -138,12 +138,12 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
|
|||
},
|
||||
itemCount: collections.incoming.length,
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: albumsCountInOneRow,
|
||||
mainAxisSpacing: 12,
|
||||
crossAxisSpacing: crossAxisSpacingOfGrid,
|
||||
childAspectRatio: sideOfThumbnail /
|
||||
(sideOfThumbnail +
|
||||
24)), //24 is height of album title
|
||||
crossAxisCount: albumsCountInOneRow,
|
||||
mainAxisSpacing: 12,
|
||||
crossAxisSpacing: crossAxisSpacingOfGrid,
|
||||
childAspectRatio:
|
||||
sideOfThumbnail / (sideOfThumbnail + 24),
|
||||
), //24 is height of album title
|
||||
),
|
||||
)
|
||||
: _getIncomingCollectionEmptyState(),
|
||||
|
@ -385,10 +385,8 @@ class IncomingCollectionItem extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
TextStyle albumTitleTextStyle = Theme.of(context)
|
||||
.textTheme
|
||||
.subtitle1
|
||||
.copyWith(fontSize: 14, fontFamily: "Inter");
|
||||
TextStyle albumTitleTextStyle =
|
||||
Theme.of(context).textTheme.subtitle1.copyWith(fontSize: 14);
|
||||
final double sideOfThumbnail =
|
||||
(MediaQuery.of(context).size.width / 2) - 18.5;
|
||||
return GestureDetector(
|
||||
|
|
Loading…
Add table
Reference in a new issue