mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +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:
@@ -33,14 +33,14 @@ class MyApp extends StatelessWidget {
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/',
|
||||
builder: (_, __) => const ProductList(),
|
||||
builder: (_, _) => const ProductList(),
|
||||
routes: [
|
||||
GoRoute(path: ':id', builder: (_, __) => const ProductDetails()),
|
||||
GoRoute(path: ':id', builder: (_, _) => const ProductDetails()),
|
||||
],
|
||||
),
|
||||
GoRoute(
|
||||
path: '/category/:category',
|
||||
builder: (_, __) => const ProductCategoryList(),
|
||||
builder: (_, _) => const ProductCategoryList(),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -30,10 +30,9 @@ class ProductCategoryList extends StatelessWidget {
|
||||
value.toString().contains(state.pathParameters['category']!),
|
||||
orElse: () => Category.all,
|
||||
);
|
||||
final List<Widget> children =
|
||||
ProductsRepository.loadProducts(
|
||||
category: category,
|
||||
).map<Widget>((Product p) => RowItem(product: p)).toList();
|
||||
final List<Widget> children = ProductsRepository.loadProducts(
|
||||
category: category,
|
||||
).map<Widget>((Product p) => RowItem(product: p)).toList();
|
||||
return Scaffold(
|
||||
backgroundColor: Styles.scaffoldBackground,
|
||||
body: CustomScrollView(
|
||||
|
||||
@@ -23,10 +23,9 @@ class ProductList extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final List<Widget> children =
|
||||
ProductsRepository.loadProducts()
|
||||
.map<Widget>((Product p) => RowItem(product: p))
|
||||
.toList();
|
||||
final List<Widget> children = ProductsRepository.loadProducts()
|
||||
.map<Widget>((Product p) => RowItem(product: p))
|
||||
.toList();
|
||||
return Scaffold(
|
||||
backgroundColor: Styles.scaffoldBackground,
|
||||
body: CustomScrollView(
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: deeplink_store_example
|
||||
description: A new Flutter project.
|
||||
version: 1.0.0+1
|
||||
resolution: workspace
|
||||
|
||||
# The following line prevents the package from being accidentally published to
|
||||
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
@@ -16,10 +19,10 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.0+1
|
||||
|
||||
|
||||
environment:
|
||||
sdk: ^3.7.0-0
|
||||
sdk: ^3.9.0-0
|
||||
|
||||
# Dependencies specify other packages that your package needs in order to work.
|
||||
# To automatically upgrade your package dependencies to the latest versions
|
||||
@@ -31,23 +34,23 @@ dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.2
|
||||
shrine_images: ^2.0.2
|
||||
go_router: ^16.1.0
|
||||
go_router: ^16.0.0
|
||||
|
||||
dev_dependencies:
|
||||
analysis_defaults:
|
||||
path: ../analysis_defaults
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
# activated in the `analysis_options.yaml` file located at the root of your
|
||||
# package. See that file for information about deactivating specific lint
|
||||
# rules and activating additional ones.
|
||||
flutter_lints: ^5.0.0
|
||||
flutter_lints: ^6.0.0
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://dart.dev/tools/pub/pubspec
|
||||
|
||||
Reference in New Issue
Block a user