From 6da341e383bd0c04d597dc6291547feab7f3a47e Mon Sep 17 00:00:00 2001 From: kkk123321 Date: Mon, 26 Feb 2024 09:54:25 +0000 Subject: [PATCH] add flutter template --- frontend/src/App.tsx | 199 ++++++++++++++++++++----------------- frontend/src/lib/stacks.ts | 1 - frontend/src/types.ts | 1 + 3 files changed, 107 insertions(+), 94 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 3f7a025..ed6a105 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -47,6 +47,8 @@ function App() { const [updateInstruction, setUpdateInstruction] = useState(""); const [isImportedFromCode, setIsImportedFromCode] = useState(false); + + // Settings const [settings, setSettings] = usePersistedState( { @@ -348,105 +350,105 @@ function App() { {(appState === AppState.CODING || appState === AppState.CODE_READY) && ( - <> - {/* Show code preview only when coding */} - {appState === AppState.CODING && ( -
-
- - {executionConsole.slice(-1)[0]} -
-
- -
- -
- )} - - {appState === AppState.CODE_READY && ( -
-
-