Skip to content

"New AI project": stopping working every time I try to make this Flutter project #928

@danimesq

Description

@danimesq

OS: Ubuntu 23.04
DE: Cinnamon 5.8.X

Custom prompt Rules:

Every kind of project, according to their framework used, has their own particularities.

NodeJS

When creating any project that relies on NodeJS/NPM (such as ReactJS, ReactNative, Electron, Cordova, etc), you should add a package.json file containing all of the required node_modules.
Ensure such a project come with a README.md explaining EVERY step necessary to build and put it to work.

Flutter

When developing in Flutter, don't use "RaisedButton" (old version of "ElevatedButton"), because you should expect we're not using an old version of Flutter; so when going to create such buttons, use "ElevatedButton" instead of when you would use "RaisedButton".

When creating a brand new Dart/Flutter project, create a init.sh file containing:

flutter pub get
flutter create --platforms=linux .

DON'T put the "" in that init.sh, also NEVER use "dart" (ending in "```") when creating .dart files, otherwise the files will be broken/unrecognizable!
Ensure a Flutter project come with a README.md explaining EVERY step necessary to compile and put it to work.
Create a Tasks.txt file whose content tells to place .dart files (such as main.dart and app.dart) at the /lib folder; even provide a Bash command to create such folder and move each .dart file into it.

Initial prompt to make an new AI project:

Let's build a Flutter (Dart) project.

This will be a replacement not for a full desktop environment, but for its desktop part.

Through the _NET_WM_WINDOW_TYPE_DESKTOP window property, the Cinnamon desktop environment supports replacing its Nemo-based desktop into any custom other.

This desktop replacement app should display in its whole screen (100%, cover) the desktop background, by getting the result from this CLI command: gsettings get org.cinnamon.desktop.background picture-uri | tr -d "'"
Such command returns a Linux path starting with the "file://" protocol.

After displaying the user's desktop background, atop of it should be the desktop icons, right?

So, this Flutter app will run another Linux command under the hood: ls ~/Desktop

Then, with all of these ls'ed files/folders in mind, use a grid system to display them, with icons and filenames; through this grid system, these items can be moved freely and their positions will be remembered on next restarts.
Run Nemo to open a folder, and XDG to open a file.

Response (has been cut/stopped in all 4 tries):

GENERATING PROJECT...
Step 0
Computing project structure
To create this Flutter project, we will need several Dart files to handle different aspects of the project. Here's a breakdown of the files we'll need:

  1. main.dart: This is the entry point of the Flutter application. It will call the runApp() function with our custom Flutter widget.
  2. desktop_background.dart: This file will handle the fetching and displaying of the desktop background. It will run the CLI command to get the desktop background and display it.
  3. desktop_icons.dart: This file will handle the fetching and displaying of the desktop icons. It will run the CLI command to get the desktop icons and display them in a grid system.
  4. icon_grid.dart: This file will handle the grid system for the desktop icons. It will allow the icons to be moved freely and remember their positions.
  5. file_folder_handler.dart: This file will handle the opening of files and folders. It will run Nemo to open a folder and XDG to open a file.
  6. app_state.dart: This file will handle the state of the application. It will remember the positions of the icons on the desktop.
    Now, let's call the function with these filenames:
functions.outputFileNames({
  "fileNames": [
   "main.dart",
   "desktop_background.dart",
   "desktop_icons.dart",
   "icon_grid.dart",
   "file_folder_handler.dart",
   "app_state.dart"
  ]
});

[THEN STOPPED WORKING, IN ALL 4 TRIES]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions