improvement: style tweaks

This commit is contained in:
Rongjian Zhang 2020-01-27 10:47:34 +08:00
parent 46ecf2ff4a
commit 65bebf63ea
5 changed files with 12 additions and 17 deletions

View File

@ -6,6 +6,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:git_touch/utils/utils.dart';
import 'package:git_touch/widgets/action_button.dart';
import 'package:primer/primer.dart';
import 'package:shared_preferences/shared_preferences.dart';
class DialogOption<T> {
@ -138,16 +139,16 @@ class ThemeModel with ChangeNotifier {
final router = Router();
final paletteLight = Palette(
primary: Colors.blueAccent.shade700,
primary: PrimerColors.blue500,
text: Colors.black,
secondaryText: Colors.grey.shade800,
tertiaryText: Colors.grey.shade600,
background: Colors.white,
grayBackground: Colors.grey.shade100,
border: Colors.grey.shade400,
border: Colors.grey.shade300,
);
final paletteDark = Palette(
primary: Colors.blueAccent.shade200,
primary: PrimerColors.blue500,
text: Colors.grey.shade300,
secondaryText: Colors.grey.shade400,
tertiaryText: Colors.grey.shade500,

View File

@ -50,7 +50,7 @@ class TabScaffold extends StatelessWidget {
final scaffold = CommonScaffold(
title: _buildTitle(context),
body: RefreshWrapper(body: body, onRefresh: onRefresh),
action: action,
// action: action, // TODO:
bottom: TabBar(
onTap: onTabSwitch,
tabs: tabs.map((text) => Tab(text: text.toUpperCase())).toList(),

View File

@ -86,17 +86,11 @@ class SettingsScreen extends StatelessWidget {
]);
},
),
TableViewItem(
text: Text('Code Theme'),
url: '/choose-code-theme',
),
]),
CommonStyle.verticalGap,
TableView(
headerText: 'CODE VIEW',
items: [
TableViewItem(
text: Text('Code settings'),
url: '/choose-code-theme',
),
],
),
],
),
);

View File

@ -96,7 +96,7 @@ class TableView extends StatelessWidget {
if (item.rightWidget != null) ...[
DefaultTextStyle(
style: TextStyle(
fontSize: 16,
fontSize: 17,
color: theme.paletteOf(context).tertiaryText,
),
child: item.rightWidget,

View File

@ -56,7 +56,7 @@ class UserItem extends StatelessWidget {
style: TextStyle(
color: theme.paletteOf(context).primary,
fontSize: 18,
// fontWeight: FontWeight.w600,
fontWeight: FontWeight.w600,
),
),
],
@ -66,7 +66,7 @@ class UserItem extends StatelessWidget {
DefaultTextStyle(
style: TextStyle(
color: theme.paletteOf(context).secondaryText,
fontSize: 15,
fontSize: 16,
),
child: bio,
),