Font adjust
This commit is contained in:
parent
0ad2fce4f3
commit
e9cb8ab40c
1 changed files with 11 additions and 7 deletions
|
|
@ -11,7 +11,7 @@ class HomePage extends StatelessWidget {
|
||||||
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
|
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
|
||||||
|
|
||||||
final _homeFont = const TextStyle(
|
final _homeFont = const TextStyle(
|
||||||
fontSize: 35.0,
|
fontSize: 50.0,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
// color: Colors.white,
|
// color: Colors.white,
|
||||||
);
|
);
|
||||||
|
|
@ -47,12 +47,16 @@ class HomePage extends StatelessWidget {
|
||||||
child: new CenteredColumn(
|
child: new CenteredColumn(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
new Padding(
|
new Padding(
|
||||||
padding: const EdgeInsets.all(10.0),
|
padding: const EdgeInsets.symmetric(
|
||||||
child: new Text(
|
vertical: 10.0, horizontal: 20.0),
|
||||||
S.of(context).appName,
|
child: FittedBox(
|
||||||
|
child: new Text(S.of(context).appName,
|
||||||
|
maxLines: 1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
softWrap: true, style: _homeFont),
|
softWrap: true,
|
||||||
),
|
style: _homeFont),
|
||||||
|
fit: BoxFit.scaleDown,
|
||||||
|
)),
|
||||||
new SizedBox(height: 20.0),
|
new SizedBox(height: 20.0),
|
||||||
new RoundedBtn.nav(
|
new RoundedBtn.nav(
|
||||||
icon: Icons.whatshot,
|
icon: Icons.whatshot,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue