mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-06 15:54:31 +01:00
Different fonts + tweaked icons
This commit is contained in:
1 parent
d78ec46e54
commit
d445283cf7
18 files changed
+252
-54
No files matched your search
Binary file not shown.
@@ -0,0 +1,93 @@
|
||||
Copyright © 2010 by Dharma Type.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -70,11 +70,10 @@ class AuthScreen extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(bottom: 20.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 94.0),
|
||||
child: const Text(
|
||||
'WGER',
|
||||
'wger',
|
||||
style: TextStyle(
|
||||
color: Colors.white70,
|
||||
fontSize: 30,
|
||||
fontFamily: 'OpenSansBold',
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -160,7 +160,7 @@ class _HomeTabsScreenState extends State<HomeTabsScreen> with SingleTickerProvid
|
||||
bottomNavigationBar: BottomNavigationBar(
|
||||
items: [
|
||||
BottomNavigationBarItem(
|
||||
icon: const Icon(Icons.dashboard),
|
||||
icon: const Icon(Icons.home),
|
||||
label: AppLocalizations.of(context).labelDashboard,
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
@@ -187,6 +187,7 @@ class _HomeTabsScreenState extends State<HomeTabsScreen> with SingleTickerProvid
|
||||
currentIndex: _selectedIndex,
|
||||
onTap: _onItemTapped,
|
||||
showUnselectedLabels: false,
|
||||
showSelectedLabels: false,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
+52
-23
@@ -17,7 +17,10 @@
|
||||
*/
|
||||
|
||||
import 'package:flex_color_scheme/flex_color_scheme.dart';
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:table_calendar/table_calendar.dart';
|
||||
|
||||
// Color scheme, please consult
|
||||
@@ -32,11 +35,14 @@ const Color wgerSecondaryColorLight = Color(0xffF6B4BA);
|
||||
const Color wgerTertiaryColor = Color(0xFF6CA450);
|
||||
|
||||
const FlexSubThemesData wgerSubThemeData = FlexSubThemesData(
|
||||
fabSchemeColor: SchemeColor.secondary,
|
||||
inputDecoratorBorderType: FlexInputBorderType.underline,
|
||||
inputDecoratorIsFilled: false,
|
||||
useTextTheme: true,
|
||||
);
|
||||
fabSchemeColor: SchemeColor.secondary,
|
||||
inputDecoratorBorderType: FlexInputBorderType.underline,
|
||||
inputDecoratorIsFilled: false,
|
||||
useTextTheme: true);
|
||||
|
||||
const String wgerDisplayFont = 'BebasNeue';
|
||||
const String wgerHeadingFont = 'RobotoCondensed';
|
||||
const List<FontVariation> robotoHeadingWeight = <FontVariation>[FontVariation('wght', 600)];
|
||||
|
||||
// Make a light ColorScheme from the seeds.
|
||||
final ColorScheme schemeLight = SeedColorScheme.fromSeeds(
|
||||
@@ -75,31 +81,54 @@ final ColorScheme schemeDarkHc = SeedColorScheme.fromSeeds(
|
||||
tones: FlexTones.ultraContrast(Brightness.dark),
|
||||
);
|
||||
|
||||
final wgerLightTheme = FlexThemeData.light(
|
||||
colorScheme: schemeLight,
|
||||
useMaterial3: true,
|
||||
appBarStyle: FlexAppBarStyle.primary,
|
||||
subThemesData: wgerSubThemeData,
|
||||
const wgerTextTheme = TextTheme(
|
||||
displayLarge: TextStyle(fontFamily: wgerDisplayFont, fontFamilyFallback: [wgerHeadingFont]),
|
||||
displayMedium: TextStyle(fontFamily: wgerDisplayFont, fontFamilyFallback: [wgerHeadingFont]),
|
||||
displaySmall: TextStyle(fontFamily: wgerDisplayFont, fontFamilyFallback: [wgerHeadingFont]),
|
||||
headlineLarge: TextStyle(fontFamily: wgerHeadingFont),
|
||||
headlineMedium: TextStyle(
|
||||
fontFamily: wgerHeadingFont,
|
||||
fontVariations: robotoHeadingWeight,
|
||||
),
|
||||
headlineSmall: TextStyle(
|
||||
fontFamily: wgerHeadingFont,
|
||||
fontVariations: robotoHeadingWeight,
|
||||
color: Colors.black,
|
||||
),
|
||||
titleLarge: TextStyle(
|
||||
fontFamily: wgerHeadingFont,
|
||||
fontVariations: robotoHeadingWeight,
|
||||
color: Colors.black,
|
||||
),
|
||||
titleMedium: TextStyle(fontFamily: wgerHeadingFont, fontVariations: robotoHeadingWeight),
|
||||
titleSmall: TextStyle(fontFamily: wgerHeadingFont, fontVariations: robotoHeadingWeight),
|
||||
);
|
||||
|
||||
final wgerLightTheme = FlexThemeData.light(
|
||||
colorScheme: schemeLight,
|
||||
useMaterial3: true,
|
||||
appBarStyle: FlexAppBarStyle.primary,
|
||||
subThemesData: wgerSubThemeData,
|
||||
textTheme: wgerTextTheme);
|
||||
|
||||
final wgerDarkTheme = FlexThemeData.dark(
|
||||
colorScheme: schemeDark,
|
||||
useMaterial3: true,
|
||||
subThemesData: wgerSubThemeData,
|
||||
);
|
||||
colorScheme: schemeDark,
|
||||
useMaterial3: true,
|
||||
subThemesData: wgerSubThemeData,
|
||||
textTheme: wgerTextTheme);
|
||||
|
||||
final wgerLightThemeHc = FlexThemeData.light(
|
||||
colorScheme: schemeLightHc,
|
||||
useMaterial3: true,
|
||||
appBarStyle: FlexAppBarStyle.primary,
|
||||
subThemesData: wgerSubThemeData,
|
||||
);
|
||||
colorScheme: schemeLightHc,
|
||||
useMaterial3: true,
|
||||
appBarStyle: FlexAppBarStyle.primary,
|
||||
subThemesData: wgerSubThemeData,
|
||||
textTheme: wgerTextTheme);
|
||||
|
||||
final wgerDarkThemeHc = FlexThemeData.dark(
|
||||
colorScheme: schemeDarkHc,
|
||||
useMaterial3: true,
|
||||
subThemesData: wgerSubThemeData,
|
||||
);
|
||||
colorScheme: schemeDarkHc,
|
||||
useMaterial3: true,
|
||||
subThemesData: wgerSubThemeData,
|
||||
textTheme: wgerTextTheme);
|
||||
|
||||
CalendarStyle getWgerCalendarStyle(ThemeData theme) {
|
||||
return CalendarStyle(
|
||||
|
||||
@@ -217,7 +217,7 @@ class _DashboardCalendarWidgetState extends State<DashboardCalendarWidget>
|
||||
style: Theme.of(context).textTheme.headlineMedium,
|
||||
),
|
||||
leading: Icon(
|
||||
Icons.calendar_today_outlined,
|
||||
Icons.calendar_today,
|
||||
color: Theme.of(context).textTheme.headlineMedium!.color,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -537,7 +537,7 @@ class _DashboardWorkoutWidgetState extends State<DashboardWorkoutWidget> {
|
||||
: '',
|
||||
),
|
||||
leading: Icon(
|
||||
Icons.fitness_center_outlined,
|
||||
Icons.fitness_center,
|
||||
color: Theme.of(context).textTheme.headlineSmall!.color,
|
||||
),
|
||||
trailing: getTrailing(),
|
||||
|
||||
@@ -135,7 +135,7 @@ class _ImageFormState extends State<ImageForm> {
|
||||
key: const Key('field-date'),
|
||||
decoration: InputDecoration(
|
||||
labelText: AppLocalizations.of(context).date,
|
||||
suffixIcon: const Icon(Icons.calendar_today_outlined),
|
||||
suffixIcon: const Icon(Icons.calendar_today),
|
||||
),
|
||||
readOnly: true, // Stop keyboard from appearing
|
||||
controller: dateController,
|
||||
|
||||
@@ -277,7 +277,7 @@ class IngredientLogForm extends StatelessWidget {
|
||||
// Stop keyboard from appearing
|
||||
decoration: InputDecoration(
|
||||
labelText: AppLocalizations.of(context).date,
|
||||
suffixIcon: const Icon(Icons.calendar_today_outlined),
|
||||
suffixIcon: const Icon(Icons.calendar_today),
|
||||
),
|
||||
enableInteractiveSelection: false,
|
||||
controller: _dateController,
|
||||
|
||||
@@ -49,7 +49,7 @@ class WeightForm extends StatelessWidget {
|
||||
readOnly: true, // Stop keyboard from appearing
|
||||
decoration: InputDecoration(
|
||||
labelText: AppLocalizations.of(context).date,
|
||||
suffixIcon: const Icon(Icons.calendar_today_outlined),
|
||||
suffixIcon: const Icon(Icons.calendar_today),
|
||||
),
|
||||
enableInteractiveSelection: false,
|
||||
controller: dateController,
|
||||
|
||||
@@ -55,7 +55,7 @@ class _WorkoutLogsState extends State<WorkoutLogs> {
|
||||
isSelected: const [false, true],
|
||||
children: const <Widget>[
|
||||
Icon(
|
||||
Icons.table_chart_outlined,
|
||||
Icons.table_chart,
|
||||
),
|
||||
Icon(
|
||||
Icons.show_chart,
|
||||
|
||||
@@ -49,7 +49,7 @@ class _WorkoutPlanDetailState extends State<WorkoutPlanDetail> {
|
||||
},
|
||||
isSelected: const [true, false],
|
||||
children: const <Widget>[
|
||||
Icon(Icons.table_chart_outlined),
|
||||
Icon(Icons.table_chart),
|
||||
Icon(Icons.show_chart),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -201,14 +201,6 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.2.4"
|
||||
cli_util:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: cli_util
|
||||
sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.4.0"
|
||||
clock:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -459,14 +451,6 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
flutter_launcher_icons:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: flutter_launcher_icons
|
||||
sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.13.1"
|
||||
flutter_lints:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
||||
+4
-5
@@ -105,13 +105,12 @@ flutter:
|
||||
# list giving the asset and other descriptors for the font. For
|
||||
# example:
|
||||
fonts:
|
||||
- family: OpenSansLight
|
||||
- family: BebasNeue
|
||||
fonts:
|
||||
- asset: assets/fonts/OpenSans-Light.ttf
|
||||
- family: OpenSansBold
|
||||
- asset: assets/fonts/BebasNeue-Regular.ttf
|
||||
- family: RobotoCondensed
|
||||
fonts:
|
||||
- asset: assets/fonts/OpenSans-Bold.ttf
|
||||
weight: 700
|
||||
- asset: assets/fonts/RobotoCondensed-VariableFont_wght.ttf
|
||||
#
|
||||
# For details regarding fonts from package dependencies,
|
||||
# see https://flutter.dev/custom-fonts/#from-packages
|
||||
|
||||
Reference in new issue
Block a user