mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
Improve Grid/Tile view styling
This commit is contained in:
@ -47,7 +47,7 @@ class CardView extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
|
||||||
child: gridView,
|
child: gridView,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ class GridFolderView extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 16.0),
|
||||||
child: gridView,
|
child: gridView,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ class NoteTile extends StatelessWidget {
|
|||||||
|
|
||||||
var theme = Theme.of(context);
|
var theme = Theme.of(context);
|
||||||
var textTheme = theme.textTheme;
|
var textTheme = theme.textTheme;
|
||||||
var borderColor = theme.highlightColor.withAlpha(50);
|
var borderColor = theme.highlightColor.withAlpha(80);
|
||||||
if (theme.brightness == Brightness.dark) {
|
if (theme.brightness == Brightness.dark) {
|
||||||
borderColor = theme.highlightColor.withAlpha(100);
|
borderColor = theme.highlightColor.withAlpha(100);
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ class NoteTile extends StatelessWidget {
|
|||||||
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
||||||
border: Border.all(color: borderColor),
|
border: Border.all(color: borderColor),
|
||||||
),
|
),
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (note.title != null && note.title.isNotEmpty)
|
if (note.title != null && note.title.isNotEmpty)
|
||||||
@ -37,7 +37,8 @@ class NoteTile extends StatelessWidget {
|
|||||||
note.title,
|
note.title,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: textTheme.title,
|
style: textTheme.title
|
||||||
|
.copyWith(fontSize: textTheme.title.fontSize * 0.80),
|
||||||
),
|
),
|
||||||
if (note.title != null && note.title.isNotEmpty)
|
if (note.title != null && note.title.isNotEmpty)
|
||||||
const SizedBox(height: 12.0),
|
const SizedBox(height: 12.0),
|
||||||
|
Reference in New Issue
Block a user