syncfusion/flutter-examples

Fail to start for Linux app on flutter 3.24.5

Opened this issue · 2 comments

Bug description

Fail to start for Linux app on flutter 3.24.5

Steps to reproduce

  1. git clone the project
  2. flutter pub get
  3. flutter run --release -d linux

Code sample

N/A

Screenshots or Video

N/A

Stack Traces

Stack Traces
$ flutter run --release -d linux
Launching lib/main.dart on Linux in release mode...
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Invalid depfile: /home/user/Public/flutter/syncfusion/flutter-examples/.dart_tool/flutter_build/eccab98b3c6868741f98faaff9f46e38/kernel_snapshot_program.d
ERROR: Error: Couldn't resolve the package 'syncfusion_flutter_chat' in 'package:syncfusion_flutter_chat/chat.dart'.
ERROR: lib/samples/chat/customization.dart:5:8: Error: Not found: 'package:syncfusion_flutter_chat/chat.dart'
ERROR: import 'package:syncfusion_flutter_chat/chat.dart';
ERROR:        ^
ERROR: lib/samples/chat/getting_started.dart:4:8: Error: Not found: 'package:syncfusion_flutter_chat/chat.dart'
ERROR: import 'package:syncfusion_flutter_chat/chat.dart';
ERROR:        ^
ERROR: lib/samples/chat/helper.dart:2:8: Error: Not found: 'package:syncfusion_flutter_chat/chat.dart'
ERROR: import 'package:syncfusion_flutter_chat/chat.dart';
ERROR:        ^
ERROR: lib/samples/chat/customization.dart:24:40: Error: Type 'ChatMessage' not found.
ERROR:       BuildContext context, int index, ChatMessage message) {
ERROR:                                        ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:37:40: Error: Type 'ChatMessage' not found.
ERROR:       BuildContext context, int index, ChatMessage message) {
ERROR:                                        ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:141:41: Error: Type 'ChatMessage' not found.
ERROR:   BorderRadius _borderRadius(int index, ChatMessage message) {
ERROR:                                         ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:177:27: Error: Type 'ChatMessage' not found.
ERROR:   bool _isOutgoingMessage(ChatMessage message) {
ERROR:                           ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:182:45: Error: Type 'ChatMessage' not found.
ERROR:   bool _isFirstMessageFromAuthor(int index, ChatMessage message) {
ERROR:                                             ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:189:44: Error: Type 'ChatMessage' not found.
ERROR:   bool _isLastMessageFromAuthor(int index, ChatMessage message) {
ERROR:                                            ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:197:40: Error: Type 'ChatMessage' not found.
ERROR:       BuildContext context, int index, ChatMessage message) {
ERROR:                                        ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:221:41: Error: Type 'ChatMessage' not found.
ERROR:   Widget _buildContentLayout(int index, ChatMessage message) {
ERROR:                                         ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:268:21: Error: Type 'ChatMessage' not found.
ERROR:   Widget _buildText(ChatMessage message, bool isOutgoingMessage) {
ERROR:                     ^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:17:13: Error: Type 'ChatMessage' not found.
ERROR:   late List<ChatMessage> _conversations;
ERROR:             ^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:18:13: Error: Type 'ChatMessage' not found.
ERROR:   late List<ChatMessage> _messages;
ERROR:             ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:5:6: Error: Type 'ChatMessage' not found.
ERROR: List<ChatMessage> chatGettingStartedData({bool customTime = false}) {
ERROR:      ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:669:30: Error: Type 'ChatMessage' not found.
ERROR: class ChatMessageExt extends ChatMessage {
ERROR:                              ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:24:40: Error: 'ChatMessage' isn't a type.
ERROR:       BuildContext context, int index, ChatMessage message) {
ERROR:                                        ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:26:50: Error: The getter 'author' isn't defined for the class 'ChatMessageExt'.
ERROR:  - 'ChatMessageExt' is from 'package:flutter_examples/samples/chat/helper.dart' ('lib/samples/chat/helper.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'author'.
ERROR:         index == 0 ? null : _messages[index - 1].author.id;
ERROR:                                                  ^^^^^^
ERROR: lib/samples/chat/customization.dart:37:40: Error: 'ChatMessage' isn't a type.
ERROR:       BuildContext context, int index, ChatMessage message) {
ERROR:                                        ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:141:41: Error: 'ChatMessage' isn't a type.
ERROR:   BorderRadius _borderRadius(int index, ChatMessage message) {
ERROR:                                         ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:177:27: Error: 'ChatMessage' isn't a type.
ERROR:   bool _isOutgoingMessage(ChatMessage message) {
ERROR:                           ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:182:45: Error: 'ChatMessage' isn't a type.
ERROR:   bool _isFirstMessageFromAuthor(int index, ChatMessage message) {
ERROR:                                             ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:184:50: Error: The getter 'author' isn't defined for the class 'ChatMessageExt'.
ERROR:  - 'ChatMessageExt' is from 'package:flutter_examples/samples/chat/helper.dart' ('lib/samples/chat/helper.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'author'.
ERROR:         index == 0 ? null : _messages[index - 1].author.id;
ERROR:                                                  ^^^^^^
ERROR: lib/samples/chat/customization.dart:189:44: Error: 'ChatMessage' isn't a type.
ERROR:   bool _isLastMessageFromAuthor(int index, ChatMessage message) {
ERROR:                                            ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:192:66: Error: The getter 'author' isn't defined for the class 'ChatMessageExt'.
ERROR:  - 'ChatMessageExt' is from 'package:flutter_examples/samples/chat/helper.dart' ('lib/samples/chat/helper.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'author'.
ERROR:         index == _messageCount - 1 ? null : _messages[index + 1].author.id;
ERROR:                                                                  ^^^^^^
ERROR: lib/samples/chat/customization.dart:197:40: Error: 'ChatMessage' isn't a type.
ERROR:       BuildContext context, int index, ChatMessage message) {
ERROR:                                        ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:221:41: Error: 'ChatMessage' isn't a type.
ERROR:   Widget _buildContentLayout(int index, ChatMessage message) {
ERROR:                                         ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:268:21: Error: 'ChatMessage' isn't a type.
ERROR:   Widget _buildText(ChatMessage message, bool isOutgoingMessage) {
ERROR:                     ^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:270:37: Error: The getter 'text' isn't defined for the class 'ChatMessageExt'.
ERROR:  - 'ChatMessageExt' is from 'package:flutter_examples/samples/chat/helper.dart' ('lib/samples/chat/helper.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'.
ERROR:     final String text = chatMessage.text;
ERROR:                                     ^^^^
ERROR: lib/samples/chat/customization.dart:376:25: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:           author: const ChatAuthor(
ERROR:                         ^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:417:45: Error: Couldn't find constructor 'ChatBubbleSettings'.
ERROR:               incomingBubbleSettings: const ChatBubbleSettings(
ERROR:                                             ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:424:45: Error: Couldn't find constructor 'ChatBubbleSettings'.
ERROR:               outgoingBubbleSettings: const ChatBubbleSettings(
ERROR:                                             ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/chat/customization.dart:414:20: Error: The method 'SfChat' isn't defined for the class 'ChatCustomizationSampleState'.
ERROR:  - 'ChatCustomizationSampleState' is from 'package:flutter_examples/samples/chat/customization.dart' ('lib/samples/chat/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'SfChat'.
ERROR:             child: SfChat(
ERROR:                    ^^^^^^
ERROR: lib/samples/chat/customization.dart:435:25: Error: The getter 'ChatComposer' isn't defined for the class 'ChatCustomizationSampleState'.
ERROR:  - 'ChatCustomizationSampleState' is from 'package:flutter_examples/samples/chat/customization.dart' ('lib/samples/chat/customization.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'ChatComposer'.
ERROR:               composer: ChatComposer.builder(builder: _buildComposer),
ERROR:                         ^^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:17:13: Error: 'ChatMessage' isn't a type.
ERROR:   late List<ChatMessage> _conversations;
ERROR:             ^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:18:13: Error: 'ChatMessage' isn't a type.
ERROR:   late List<ChatMessage> _messages;
ERROR:             ^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:36:18: Error: 'ChatMessage' isn't a type.
ERROR:     _messages = <ChatMessage>[];
ERROR:                  ^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:58:45: Error: Couldn't find constructor 'ChatBubbleSettings'.
ERROR:               outgoingBubbleSettings: const ChatBubbleSettings(
ERROR:                                             ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:62:31: Error: Couldn't find constructor 'ChatComposer'.
ERROR:               composer: const ChatComposer(
ERROR:                               ^^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:72:33: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:                           const ChatAuthor(id: 'Cristina', name: 'Cristina'),
ERROR:                                 ^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:55:20: Error: The method 'SfChat' isn't defined for the class '_ChatViewState'.
ERROR:  - '_ChatViewState' is from 'package:flutter_examples/samples/chat/getting_started.dart' ('lib/samples/chat/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'SfChat'.
ERROR:             child: SfChat(
ERROR:                    ^^^^^^
ERROR: lib/samples/chat/getting_started.dart:65:29: Error: The method 'ChatActionButton' isn't defined for the class '_ChatViewState'.
ERROR:  - '_ChatViewState' is from 'package:flutter_examples/samples/chat/getting_started.dart' ('lib/samples/chat/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'ChatActionButton'.
ERROR:               actionButton: ChatActionButton(
ERROR:                             ^^^^^^^^^^^^^^^^
ERROR: lib/samples/chat/getting_started.dart:68:35: Error: The method 'ChatMessage' isn't defined for the class '_ChatViewState'.
ERROR:  - '_ChatViewState' is from 'package:flutter_examples/samples/chat/getting_started.dart' ('lib/samples/chat/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'ChatMessage'.
ERROR:                     _messages.add(ChatMessage(
ERROR:                                   ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:6:11: Error: 'ChatMessage' isn't a type.
ERROR:   return <ChatMessage>[
ERROR:           ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:13:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:7:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:25:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:19:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:36:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:31:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:47:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:42:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:60:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:53:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:73:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:66:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:86:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:79:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:98:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:92:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:109:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:104:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:121:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:115:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:134:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:127:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:146:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:140:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:159:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:152:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:171:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:165:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:182:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:177:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:193:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:188:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:204:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:199:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:215:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:210:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:226:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:221:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:239:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:232:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:250:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:245:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:262:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:256:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:274:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:268:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:285:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:280:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:297:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:291:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:308:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:303:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:319:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:314:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:331:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:325:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:342:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:337:5: Error: Method not found: 'ChatMessage'.
ERROR:     ChatMessage(
ERROR:     ^^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:359:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:371:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:383:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:394:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:406:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:417:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:428:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:440:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:452:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:464:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:475:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:486:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:498:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:509:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:520:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:533:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:545:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:557:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:569:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:581:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:592:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:604:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:615:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:626:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:638:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:649:21: Error: Couldn't find constructor 'ChatAuthor'.
ERROR:       author: const ChatAuthor(
ERROR:                     ^^^^^^^^^^
ERROR: lib/samples/chat/helper.dart:670:3: Error: The superclass, 'ChatMessage', has no unnamed constructor that takes no arguments.
ERROR:   ChatMessageExt({
ERROR:   ^^^^^^^^^^^^^^
ERROR: Unhandled exception:
ERROR: Target kernel_snapshot_program failed: Exception
Building Linux application...
Error: Build process failed
#0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1      _runBuild (package:flutter_tools/src/linux/build_linux.dart:210:5)
<asynchronous suspension>
#2      buildLinux (package:flutter_tools/src/linux/build_linux.dart:83:5)
<asynchronous suspension>
#3      LinuxDevice.buildForDevice (package:flutter_tools/src/linux/linux_device.dart:67:5)
<asynchronous suspension>
#4      DesktopDevice.startApp (package:flutter_tools/src/desktop_device.dart:121:7)
<asynchronous suspension>
#5      FlutterDevice.runCold (package:flutter_tools/src/resident_runner.dart:534:33)
<asynchronous suspension>
#6      ColdRunner.run (package:flutter_tools/src/run_cold.dart:55:28)
<asynchronous suspension>
#7      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:867:27)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16     main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>

On which target platforms have you observed this bug?

Linux

Flutter Doctor output

Doctor output
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on Ubuntu 24.04.1 LTS 6.8.0-48-generic, locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.95.3)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 2 categories.

Hi @sgon00 ,

We have updated the Volume 4, 2024 release source, please take update, it will be working fine now.

Regards,
Lavanya A.

Hi @LavanyaGowtham2021,

Thanks a lot for the reply and help. I tried git pull, but the build still failed. Then I upgrade flutter and git clone a new directory, everything is new, but still failed. Please check the following cmd outputs:

❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on Ubuntu 24.04.1 LTS 6.8.0-50-generic, locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.96.0)
[✓] Connected device (2 available)
[✓] Network resources

❯ git clone https://github.com/syncfusion/flutter-examples

❯ cd flutter-examples

❯ flutter pub get
Resolving dependencies... (4.8s)
Downloading packages... (1.7s)
+ archive 3.6.1 (4.0.2 available)
+ async 2.11.0 (2.12.0 available)
+ boolean_selector 2.1.1 (2.1.2 available)
+ characters 1.3.0 (1.4.0 available)
+ clock 1.1.1 (1.1.2 available)
+ collection 1.19.0 (1.19.1 available)
+ convert 3.1.2
+ crypto 3.0.6
+ cupertino_icons 1.0.8
+ desktop_window 0.4.0 (0.4.2 available)
+ device_info_plus 10.1.2 (11.2.0 available)
+ device_info_plus_platform_interface 7.0.2
+ fake_async 1.3.1 (1.3.2 available)
+ ffi 2.1.3
+ file 7.0.1
+ fixnum 1.1.1
+ flutter 0.0.0 from sdk flutter
+ flutter_localizations 0.0.0 from sdk flutter
+ flutter_test 0.0.0 from sdk flutter
+ flutter_web_plugins 0.0.0 from sdk flutter
+ http 1.2.2
+ http_parser 4.1.1
+ image 4.3.0 (4.5.2 available)
+ intl 0.19.0 (0.20.1 available)
+ jiffy 6.3.2
+ leak_tracker 10.0.7 (10.0.8 available)
+ leak_tracker_flutter_testing 3.0.8 (3.0.9 available)
+ leak_tracker_testing 3.0.1
+ matcher 0.12.16+1 (0.12.17 available)
+ material_color_utilities 0.11.1 (0.12.0 available)
+ meta 1.15.0 (1.16.0 available)
+ path 1.9.0 (1.9.1 available)
+ path_provider 2.1.5
+ path_provider_android 2.2.15
+ path_provider_foundation 2.4.1
+ path_provider_linux 2.2.1
+ path_provider_platform_interface 2.1.2
+ path_provider_windows 2.3.0
+ petitparser 6.0.2
+ platform 3.1.6
+ plugin_platform_interface 2.1.8
+ sky_engine 0.0.0 from sdk flutter
+ source_span 1.10.0 (1.10.1 available)
+ sprintf 7.0.0
+ stack_trace 1.12.0 (1.12.1 available)
+ stream_channel 2.1.2 (2.1.3 available)
+ string_scanner 1.3.0 (1.4.1 available)
+ syncfusion_flutter_barcodes 28.1.35
+ syncfusion_flutter_calendar 28.1.35
+ syncfusion_flutter_charts 28.1.35
+ syncfusion_flutter_chat 28.1.35-beta
+ syncfusion_flutter_core 28.1.35
+ syncfusion_flutter_datagrid 28.1.35
+ syncfusion_flutter_datagrid_export 28.1.35
+ syncfusion_flutter_datepicker 28.1.35
+ syncfusion_flutter_gauges 28.1.35
+ syncfusion_flutter_maps 28.1.35
+ syncfusion_flutter_pdf 28.1.35
+ syncfusion_flutter_pdfviewer 28.1.35
+ syncfusion_flutter_signaturepad 28.1.35
+ syncfusion_flutter_sliders 28.1.35
+ syncfusion_flutter_treemap 28.1.35
+ syncfusion_flutter_xlsio 28.1.35
+ syncfusion_localizations 28.1.35
+ syncfusion_officechart 28.1.35
+ syncfusion_officecore 28.1.35
+ syncfusion_pdfviewer_macos 28.1.35
+ syncfusion_pdfviewer_platform_interface 28.1.35
+ syncfusion_pdfviewer_web 28.1.35
+ syncfusion_pdfviewer_windows 28.1.35
+ term_glyph 1.2.1 (1.2.2 available)
+ test_api 0.7.3 (0.7.4 available)
+ timezone 0.9.4 (0.10.0 available)
+ typed_data 1.4.0
+ url_launcher 6.3.1
+ url_launcher_android 6.3.14
+ url_launcher_ios 6.3.2
+ url_launcher_linux 3.2.1
+ url_launcher_macos 3.2.2
+ url_launcher_platform_interface 2.3.2
+ url_launcher_web 2.3.3
+ url_launcher_windows 3.1.3
+ uuid 4.5.1
+ vector_math 2.1.4
+ vm_service 14.3.0 (15.0.0 available)
+ web 1.1.0
+ win32 5.9.0
+ win32_registry 1.1.5 (2.0.1 available)
+ xdg_directories 1.1.0
+ xml 6.5.0
Changed 90 dependencies!
26 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

❯ flutter run --release -d linux
Launching lib/main.dart on Linux in release mode...
add_custom_command() missing VERBATIM or FLUTTER_TARGET_PLATFORM, updating.
ERROR: Error: Couldn't resolve the package 'flutter_markdown' in 'package:flutter_markdown/flutter_markdown.dart'.
ERROR: Error: Couldn't resolve the package 'google_generative_ai' in 'package:google_generative_ai/google_generative_ai.dart'.
ERROR: lib/samples/ai_assist_view/customization.dart:6:8: Error: Not found: 'package:flutter_markdown/flutter_markdown.dart'
ERROR: import 'package:flutter_markdown/flutter_markdown.dart';
ERROR:        ^
ERROR: lib/samples/ai_assist_view/getting_started.dart:4:8: Error: Not found: 'package:flutter_markdown/flutter_markdown.dart'
ERROR: import 'package:flutter_markdown/flutter_markdown.dart';
ERROR:        ^
ERROR: lib/samples/ai_assist_view/customization.dart:7:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_assist_view/getting_started.dart:5:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:3:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:4:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:9:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:3:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:3:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:7:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR:        ^
ERROR: lib/samples/ai_assist_view/customization.dart:457:3: Error: Type 'MarkdownBody' not found.
ERROR:   MarkdownBody _buildResponseContent(AssistMessage message) {
ERROR:   ^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:26:8: Error: Type 'ChatSession' not found.
ERROR:   late ChatSession _chat;
ERROR:        ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:40:8: Error: Type 'ChatSession' not found.
ERROR:   late ChatSession _chat;
ERROR:        ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:23:14: Error: Type 'GenerativeModel' not found.
ERROR:   late final GenerativeModel _model;
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:24:14: Error: Type 'ChatSession' not found.
ERROR:   late final ChatSession _chat;
ERROR:              ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:23:14: Error: Type 'GenerativeModel' not found.
ERROR:   late final GenerativeModel _model;
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:24:14: Error: Type 'ChatSession' not found.
ERROR:   late final ChatSession _chat;
ERROR:              ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:27:14: Error: Type 'GenerativeModel' not found.
ERROR:   late final GenerativeModel _model;
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:28:14: Error: Type 'ChatSession' not found.
ERROR:   late final ChatSession _chat;
ERROR:              ^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:369:11: Error: 'GenerativeModel' isn't a type.
ERROR:     final GenerativeModel aiModel = GenerativeModel(
ERROR:           ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:375:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response =
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:369:37: Error: The method 'GenerativeModel' isn't defined for the class 'AssistViewState'.
ERROR:  - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:     final GenerativeModel aiModel = GenerativeModel(
ERROR:                                     ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:376:42: Error: The getter 'Content' isn't defined for the class 'AssistViewState'.
ERROR:  - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:           await aiModel.generateContent([Content.text(prompt)]);
ERROR:                                          ^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:447:16: Error: The method 'MarkdownBody' isn't defined for the class 'AssistViewState'.
ERROR:  - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownBody'.
ERROR:         child: MarkdownBody(
ERROR:                ^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:449:23: Error: The method 'MarkdownStyleSheet' isn't defined for the class 'AssistViewState'.
ERROR:  - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownStyleSheet'.
ERROR:           styleSheet: MarkdownStyleSheet(
ERROR:                       ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:458:12: Error: The method 'MarkdownBody' isn't defined for the class 'AssistViewState'.
ERROR:  - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownBody'.
ERROR:     return MarkdownBody(
ERROR:            ^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:460:19: Error: The method 'MarkdownStyleSheet' isn't defined for the class 'AssistViewState'.
ERROR:  - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownStyleSheet'.
ERROR:       styleSheet: MarkdownStyleSheet(
ERROR:                   ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:82:18: Error: The method 'MarkdownBody' isn't defined for the class '_AssistViewState'.
ERROR:  - '_AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/getting_started.dart' ('lib/samples/ai_assist_view/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownBody'.
ERROR:           return MarkdownBody(data: message.data);
ERROR:                  ^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:183:11: Error: 'GenerativeModel' isn't a type.
ERROR:     final GenerativeModel aiModel = GenerativeModel(
ERROR:           ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:189:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response =
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:183:37: Error: The method 'GenerativeModel' isn't defined for the class '_AssistViewState'.
ERROR:  - '_AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/getting_started.dart' ('lib/samples/ai_assist_view/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:     final GenerativeModel aiModel = GenerativeModel(
ERROR:                                     ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:190:42: Error: The getter 'Content' isn't defined for the class '_AssistViewState'.
ERROR:  - '_AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/getting_started.dart' ('lib/samples/ai_assist_view/getting_started.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:           await aiModel.generateContent([Content.text(prompt)]);
ERROR:                                          ^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:788:22: Error: 'Content' isn't a type.
ERROR:           final List<Content> content = [Content.text(aiPrompt)];
ERROR:                      ^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:789:17: Error: 'GenerateContentResponse' isn't a type.
ERROR:           final GenerateContentResponse response =
ERROR:                 ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:766:23: Error: The method 'GenerativeModel' isn't defined for the class '_AiCalendarState'.
ERROR:  - '_AiCalendarState' is from 'package:flutter_examples/samples/ai_samples/ai_calender/calendar_appointment.dart' ('lib/samples/ai_samples/ai_calender/calendar_appointment.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:       final aiModel = GenerativeModel(
ERROR:                       ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:788:42: Error: The getter 'Content' isn't defined for the class '_AiCalendarState'.
ERROR:  - '_AiCalendarState' is from 'package:flutter_examples/samples/ai_samples/ai_calender/calendar_appointment.dart' ('lib/samples/ai_samples/ai_calender/calendar_appointment.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:           final List<Content> content = [Content.text(aiPrompt)];
ERROR:                                          ^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:802:66: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
ERROR:           final Iterable<RegExpMatch> matches = regex.allMatches(responseText);
ERROR:                                                                  ^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:26:8: Error: 'ChatSession' isn't a type.
ERROR:   late ChatSession _chat;
ERROR:        ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:355:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response = await _chat.sendMessage(
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:350:21: Error: The method 'GenerativeModel' isn't defined for the class '_DataPreProcessingSampleState'.
ERROR:  - '_DataPreProcessingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/data_pre_processing.dart' ('lib/samples/ai_samples/ai_charts/data_pre_processing.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:       final model = GenerativeModel(
ERROR:                     ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:356:9: Error: The getter 'Content' isn't defined for the class '_DataPreProcessingSampleState'.
ERROR:  - '_DataPreProcessingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/data_pre_processing.dart' ('lib/samples/ai_samples/ai_charts/data_pre_processing.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:         Content.text(message),
ERROR:         ^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:40:8: Error: 'ChatSession' isn't a type.
ERROR:   late ChatSession _chat;
ERROR:        ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:845:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response = await _chat.sendMessage(
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:839:21: Error: The method 'GenerativeModel' isn't defined for the class '_StockForecastingSampleState'.
ERROR:  - '_StockForecastingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/stock_forecasting.dart' ('lib/samples/ai_samples/ai_charts/stock_forecasting.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:       final model = GenerativeModel(
ERROR:                     ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:846:9: Error: The getter 'Content' isn't defined for the class '_StockForecastingSampleState'.
ERROR:  - '_StockForecastingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/stock_forecasting.dart' ('lib/samples/ai_samples/ai_charts/stock_forecasting.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:         Content.text(message),
ERROR:         ^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:23:14: Error: 'GenerativeModel' isn't a type.
ERROR:   late final GenerativeModel _model;
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:24:14: Error: 'ChatSession' isn't a type.
ERROR:   late final ChatSession _chat;
ERROR:              ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:38:14: Error: The method 'GenerativeModel' isn't defined for the class '_AnamolyDetectionSampleState'.
ERROR:  - '_AnamolyDetectionSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/anamoly_detection.dart' ('lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:     _model = GenerativeModel(
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:138:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response = await _chat.sendMessage(
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:139:9: Error: The getter 'Content' isn't defined for the class '_AnamolyDetectionSampleState'.
ERROR:  - '_AnamolyDetectionSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/anamoly_detection.dart' ('lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:         Content.text(message),
ERROR:         ^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:23:14: Error: 'GenerativeModel' isn't a type.
ERROR:   late final GenerativeModel _model;
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:24:14: Error: 'ChatSession' isn't a type.
ERROR:   late final ChatSession _chat;
ERROR:              ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:38:14: Error: The method 'GenerativeModel' isn't defined for the class '_PredictiveDataSampleState'.
ERROR:  - '_PredictiveDataSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/predictive_data_entry.dart' ('lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:     _model = GenerativeModel(
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:152:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response = await _chat.sendMessage(
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:153:9: Error: The getter 'Content' isn't defined for the class '_PredictiveDataSampleState'.
ERROR:  - '_PredictiveDataSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/predictive_data_entry.dart' ('lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:         Content.text(message),
ERROR:         ^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:27:14: Error: 'GenerativeModel' isn't a type.
ERROR:   late final GenerativeModel _model;
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:28:14: Error: 'ChatSession' isn't a type.
ERROR:   late final ChatSession _chat;
ERROR:              ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:104:14: Error: The method 'GenerativeModel' isn't defined for the class '_SmartFillSampleState'.
ERROR:  - '_SmartFillSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart' ('lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR:     _model = GenerativeModel(
ERROR:              ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:148:13: Error: 'GenerateContentResponse' isn't a type.
ERROR:       final GenerateContentResponse response =
ERROR:             ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:149:35: Error: The getter 'Content' isn't defined for the class '_SmartFillSampleState'.
ERROR:  - '_SmartFillSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart' ('lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR:           await _chat.sendMessage(Content.text(message));
ERROR:                                   ^^^^^^^
ERROR: Unhandled exception:
ERROR: Target kernel_snapshot_program failed: Exception
Building Linux application...                                           
Error: Build process failed
#0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1      _runBuild (package:flutter_tools/src/linux/build_linux.dart:210:5)
<asynchronous suspension>
#2      buildLinux (package:flutter_tools/src/linux/build_linux.dart:83:5)
<asynchronous suspension>
#3      LinuxDevice.buildForDevice (package:flutter_tools/src/linux/linux_device.dart:67:5)
<asynchronous suspension>
#4      DesktopDevice.startApp (package:flutter_tools/src/desktop_device.dart:120:7)
<asynchronous suspension>
#5      FlutterDevice.runCold (package:flutter_tools/src/resident_runner.dart:538:33)
<asynchronous suspension>
#6      ColdRunner.run (package:flutter_tools/src/run_cold.dart:53:28)
<asynchronous suspension>
#7      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:854:27)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16     main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>