Improve Grid/Tile view styling

This commit is contained in:
Vishesh Handa
2020-03-30 12:17:18 +02:00
parent cea0adb7f9
commit 499aa00e4d
3 changed files with 6 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class CardView extends StatelessWidget {
);
return Padding(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
child: gridView,
);
}

View File

@ -42,7 +42,7 @@ class GridFolderView extends StatelessWidget {
);
return Padding(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
child: gridView,
);
}

View File

@ -19,7 +19,7 @@ class NoteTile extends StatelessWidget {
var theme = Theme.of(context);
var textTheme = theme.textTheme;
var borderColor = theme.highlightColor.withAlpha(50);
var borderColor = theme.highlightColor.withAlpha(80);
if (theme.brightness == Brightness.dark) {
borderColor = theme.highlightColor.withAlpha(100);
}
@ -29,7 +29,7 @@ class NoteTile extends StatelessWidget {
borderRadius: const BorderRadius.all(Radius.circular(8)),
border: Border.all(color: borderColor),
),
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.all(16.0),
child: Column(
children: <Widget>[
if (note.title != null && note.title.isNotEmpty)
@ -37,7 +37,8 @@ class NoteTile extends StatelessWidget {
note.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: textTheme.title,
style: textTheme.title
.copyWith(fontSize: textTheme.title.fontSize * 0.80),
),
if (note.title != null && note.title.isNotEmpty)
const SizedBox(height: 12.0),