mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Dart 3.9 / Flutter 3.35 [first LLM release] (#2714)
I got carried away with Gemini and basically rewrote CI and the release process for the new LLM reality. This work was largely completed by Gemini. - Bump all SDK versions to the current beta (3.9.0-0) - Run `flutter channel beta` - Wrote `ci_script.dart` to replace the bash scripts - Converted repository to pub workspace #2499 - Added llm.md and release.md - Added redirect for deprecated Samples Index ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`).
This commit is contained in:
@@ -43,35 +43,39 @@ abstract class Styles {
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
static TextStyle cardCategoryText(CupertinoThemeData themeData) => themeData
|
||||
.textTheme
|
||||
.textStyle
|
||||
.copyWith(color: const Color.fromRGBO(255, 255, 255, 0.9));
|
||||
static TextStyle cardCategoryText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(
|
||||
color: const Color.fromRGBO(255, 255, 255, 0.9),
|
||||
);
|
||||
|
||||
static TextStyle cardDescriptionText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(
|
||||
color: const Color.fromRGBO(0, 0, 0, 0.9),
|
||||
);
|
||||
|
||||
static TextStyle detailsTitleText(CupertinoThemeData themeData) => themeData
|
||||
.textTheme
|
||||
.textStyle
|
||||
.copyWith(fontSize: 30, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle detailsPreferredCategoryText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle detailsBoldDescriptionText(CupertinoThemeData themeData) =>
|
||||
static TextStyle detailsTitleText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(
|
||||
color: const Color.fromRGBO(0, 0, 0, 0.9),
|
||||
fontSize: 30,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
static TextStyle detailsServingHeaderText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(
|
||||
color: const Color.fromRGBO(176, 176, 176, 1),
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
static TextStyle detailsPreferredCategoryText(
|
||||
CupertinoThemeData themeData,
|
||||
) => themeData.textTheme.textStyle.copyWith(fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle detailsBoldDescriptionText(
|
||||
CupertinoThemeData themeData,
|
||||
) => themeData.textTheme.textStyle.copyWith(
|
||||
color: const Color.fromRGBO(0, 0, 0, 0.9),
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
static TextStyle detailsServingHeaderText(
|
||||
CupertinoThemeData themeData,
|
||||
) => themeData.textTheme.textStyle.copyWith(
|
||||
color: const Color.fromRGBO(176, 176, 176, 1),
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
static TextStyle detailsServingLabelText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(fontWeight: FontWeight.bold);
|
||||
@@ -103,8 +107,8 @@ abstract class Styles {
|
||||
|
||||
static Color? scaffoldBackground(Brightness brightness) =>
|
||||
brightness == Brightness.light
|
||||
? CupertinoColors.extraLightBackgroundGray
|
||||
: null;
|
||||
? CupertinoColors.extraLightBackgroundGray
|
||||
: null;
|
||||
|
||||
static const frostedBackground = Color(0xccf8f8f8);
|
||||
|
||||
@@ -112,8 +116,12 @@ abstract class Styles {
|
||||
|
||||
static const closeButtonPressed = Color(0xff808080);
|
||||
|
||||
static TextStyle settingsItemSubtitleText(CupertinoThemeData themeData) =>
|
||||
themeData.textTheme.textStyle.copyWith(fontSize: 12, letterSpacing: -0.2);
|
||||
static TextStyle settingsItemSubtitleText(
|
||||
CupertinoThemeData themeData,
|
||||
) => themeData.textTheme.textStyle.copyWith(
|
||||
fontSize: 12,
|
||||
letterSpacing: -0.2,
|
||||
);
|
||||
|
||||
static const Color searchCursorColor = Color.fromRGBO(0, 122, 255, 1);
|
||||
|
||||
@@ -177,13 +185,13 @@ abstract class Styles {
|
||||
|
||||
static Color settingsItemColor(Brightness brightness) =>
|
||||
brightness == Brightness.light
|
||||
? CupertinoColors.tertiarySystemBackground
|
||||
: CupertinoColors.darkBackgroundGray;
|
||||
? CupertinoColors.tertiarySystemBackground
|
||||
: CupertinoColors.darkBackgroundGray;
|
||||
|
||||
static Color settingsLineation(Brightness brightness) =>
|
||||
brightness == Brightness.light
|
||||
? const Color(0xffbcbbc1)
|
||||
: const Color(0xff4c4b4b);
|
||||
? const Color(0xffbcbbc1)
|
||||
: const Color(0xff4c4b4b);
|
||||
|
||||
static const Color settingsBackground = Color(0xffefeff4);
|
||||
|
||||
@@ -208,6 +216,6 @@ abstract class Styles {
|
||||
static const servingInfoBorderColor = Color(0xffb0b0b0);
|
||||
|
||||
static const ColorFilter desaturatedColorFilter =
|
||||
// 222222 is a random color that has low color saturation.
|
||||
ColorFilter.mode(Color(0xff222222), BlendMode.saturation);
|
||||
// 222222 is a random color that has low color saturation.
|
||||
ColorFilter.mode(Color(0xff222222), BlendMode.saturation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user