|
|
@ -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';
|
|
|
|
|
|
|
|
|
|
|
|
class GalleryThemeData {
|
|
|
|
class GalleryThemeData {
|
|
|
|
static const _lightFillColor = Colors.black;
|
|
|
|
static const _lightFillColor = Colors.black;
|
|
|
@ -75,86 +76,21 @@ class GalleryThemeData {
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
static TextTheme _textTheme = TextTheme(
|
|
|
|
|
|
|
|
display1: _GalleryTextStyles.heading,
|
|
|
|
|
|
|
|
caption: _GalleryTextStyles.studyTitle,
|
|
|
|
|
|
|
|
headline: _GalleryTextStyles.categoryTitle,
|
|
|
|
|
|
|
|
subhead: _GalleryTextStyles.listTitle,
|
|
|
|
|
|
|
|
overline: _GalleryTextStyles.listDescription,
|
|
|
|
|
|
|
|
body2: _GalleryTextStyles.sliderTitle,
|
|
|
|
|
|
|
|
subtitle: _GalleryTextStyles.settingsFooter,
|
|
|
|
|
|
|
|
body1: _GalleryTextStyles.options,
|
|
|
|
|
|
|
|
title: _GalleryTextStyles.title,
|
|
|
|
|
|
|
|
button: _GalleryTextStyles.button,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _GalleryTextStyles {
|
|
|
|
|
|
|
|
static const _regular = FontWeight.w400;
|
|
|
|
static const _regular = FontWeight.w400;
|
|
|
|
static const _medium = FontWeight.w500;
|
|
|
|
static const _medium = FontWeight.w500;
|
|
|
|
static const _semiBold = FontWeight.w600;
|
|
|
|
static const _semiBold = FontWeight.w600;
|
|
|
|
static const _bold = FontWeight.w700;
|
|
|
|
static const _bold = FontWeight.w700;
|
|
|
|
|
|
|
|
|
|
|
|
static const _montserrat = 'Montserrat';
|
|
|
|
static TextTheme _textTheme = TextTheme(
|
|
|
|
static const _oswald = 'Oswald';
|
|
|
|
display1: GoogleFonts.montserrat(fontWeight: _bold, fontSize: 20.0),
|
|
|
|
|
|
|
|
caption: GoogleFonts.oswald(fontWeight: _semiBold, fontSize: 16.0),
|
|
|
|
static const heading = TextStyle(
|
|
|
|
headline: GoogleFonts.oswald(fontWeight: _medium, fontSize: 16.0),
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
subhead: GoogleFonts.montserrat(fontWeight: _medium, fontSize: 16.0),
|
|
|
|
fontWeight: _bold,
|
|
|
|
overline: GoogleFonts.montserrat(fontWeight: _medium, fontSize: 12.0),
|
|
|
|
fontSize: 20.0,
|
|
|
|
body2: GoogleFonts.montserrat(fontWeight: _regular, fontSize: 14.0),
|
|
|
|
);
|
|
|
|
subtitle: GoogleFonts.montserrat(fontWeight: _medium, fontSize: 14.0),
|
|
|
|
|
|
|
|
body1: GoogleFonts.montserrat(fontWeight: _regular, fontSize: 16.0),
|
|
|
|
static const studyTitle = TextStyle(
|
|
|
|
title: GoogleFonts.montserrat(fontWeight: _bold, fontSize: 16.0),
|
|
|
|
fontFamily: _oswald,
|
|
|
|
button: GoogleFonts.montserrat(fontWeight: _semiBold, fontSize: 14.0),
|
|
|
|
fontWeight: _semiBold,
|
|
|
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const categoryTitle = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _oswald,
|
|
|
|
|
|
|
|
fontWeight: _medium,
|
|
|
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const listTitle = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _medium,
|
|
|
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const listDescription = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _medium,
|
|
|
|
|
|
|
|
fontSize: 12.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const sliderTitle = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _regular,
|
|
|
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const settingsFooter = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _medium,
|
|
|
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const options = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _regular,
|
|
|
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const title = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _bold,
|
|
|
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const button = TextStyle(
|
|
|
|
|
|
|
|
fontFamily: _montserrat,
|
|
|
|
|
|
|
|
fontWeight: _semiBold,
|
|
|
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|