mirror of
https://github.com/flutter/samples.git
synced 2025-11-14 11:28:36 +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:
@@ -24,7 +24,9 @@ void main() {
|
||||
Logger.root.level = Level.ALL;
|
||||
Logger.root.onRecord.listen((rec) {
|
||||
// ignore: avoid_print
|
||||
print('${rec.loggerName} ${rec.level.name}: ${rec.time}: ${rec.message}');
|
||||
print(
|
||||
'${rec.loggerName} ${rec.level.name}: ${rec.time}: ${rec.message}',
|
||||
);
|
||||
});
|
||||
|
||||
if (unsplashAccessKey.isEmpty) {
|
||||
@@ -39,8 +41,8 @@ void main() {
|
||||
|
||||
runApp(
|
||||
ChangeNotifierProvider<PhotoSearchModel>(
|
||||
create:
|
||||
(context) => PhotoSearchModel(Unsplash(accessKey: unsplashAccessKey)),
|
||||
create: (context) =>
|
||||
PhotoSearchModel(Unsplash(accessKey: unsplashAccessKey)),
|
||||
child: const UnsplashSearchApp(),
|
||||
),
|
||||
);
|
||||
@@ -50,7 +52,8 @@ const double windowWidth = 1024;
|
||||
const double windowHeight = 800;
|
||||
|
||||
void setupWindow() {
|
||||
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
|
||||
if (!kIsWeb &&
|
||||
(Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
setWindowMinSize(const Size(windowWidth, windowHeight));
|
||||
}
|
||||
@@ -84,9 +87,9 @@ class UnsplashHomePage extends StatelessWidget {
|
||||
onSelected: () {
|
||||
showDialog<void>(
|
||||
context: context,
|
||||
builder:
|
||||
(context) =>
|
||||
PhotoSearchDialog(callback: photoSearchModel.addSearch),
|
||||
builder: (context) => PhotoSearchDialog(
|
||||
callback: photoSearchModel.addSearch,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -118,12 +121,11 @@ class UnsplashHomePage extends StatelessWidget {
|
||||
return UnsplashNotice(
|
||||
child: Container(
|
||||
color: Colors.white,
|
||||
child:
|
||||
photoSearchModel.entries.isNotEmpty
|
||||
? const UnsplashSearchContent()
|
||||
: const Center(
|
||||
child: Text('Search for Photos using the Search menu'),
|
||||
),
|
||||
child: photoSearchModel.entries.isNotEmpty
|
||||
? const UnsplashSearchContent()
|
||||
: const Center(
|
||||
child: Text('Search for Photos using the Search menu'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user