|
|
@ -3,6 +3,7 @@
|
|
|
|
// found in the LICENSE file.
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:gallery/studies/crane/colors.dart';
|
|
|
|
import 'package:gallery/studies/crane/colors.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -42,66 +43,64 @@ ThemeData _buildCraneTheme() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TextTheme _buildCraneTextTheme(TextTheme base) {
|
|
|
|
TextTheme _buildCraneTextTheme(TextTheme base) {
|
|
|
|
return base
|
|
|
|
return GoogleFonts.ralewayTextTheme(
|
|
|
|
.copyWith(
|
|
|
|
base.copyWith(
|
|
|
|
display4: base.display4.copyWith(
|
|
|
|
display4: base.display4.copyWith(
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
fontSize: 96,
|
|
|
|
fontSize: 96,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
display3: base.display3.copyWith(
|
|
|
|
display3: base.display3.copyWith(
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 60,
|
|
|
|
fontSize: 60,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
display2: base.display2.copyWith(
|
|
|
|
display2: base.display2.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 48,
|
|
|
|
fontSize: 48,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
display1: base.display1.copyWith(
|
|
|
|
display1: base.display1.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 34,
|
|
|
|
fontSize: 34,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
headline: base.headline.copyWith(
|
|
|
|
headline: base.headline.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 24,
|
|
|
|
fontSize: 24,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
title: base.title.copyWith(
|
|
|
|
title: base.title.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 20,
|
|
|
|
fontSize: 20,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
subhead: base.subhead.copyWith(
|
|
|
|
subhead: base.subhead.copyWith(
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
|
|
|
fontSize: 16,
|
|
|
|
letterSpacing: 0.5,
|
|
|
|
letterSpacing: 0.5,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
subtitle: base.subtitle.copyWith(
|
|
|
|
subtitle: base.subtitle.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
color: craneGrey,
|
|
|
|
color: craneGrey,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body2: base.body2.copyWith(
|
|
|
|
body2: base.body2.copyWith(
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
|
|
|
fontSize: 16,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body1: base.body1.copyWith(
|
|
|
|
body1: base.body1.copyWith(
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
button: base.button.copyWith(
|
|
|
|
button: base.button.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 13,
|
|
|
|
fontSize: 13,
|
|
|
|
letterSpacing: 0.8,
|
|
|
|
letterSpacing: 0.8,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
caption: base.caption.copyWith(
|
|
|
|
caption: base.caption.copyWith(
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
color: craneGrey,
|
|
|
|
color: craneGrey,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
overline: base.overline.copyWith(
|
|
|
|
overline: base.overline.copyWith(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
.apply(
|
|
|
|
);
|
|
|
|
fontFamily: 'Raleway',
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|