You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\Users\LENOVO\Pictures\fletapp\flet2\main.py", line 4, in
from fab import AnimatedMenuButton, MenuItem
File "C:\Users\LENOVO\Pictures\fletapp\flet2\fab.py", line 9, in
from flet import (
ImportError: cannot import name 'Vector' from 'flet' (C:\Users\LENOVO\AppData\Local\Programs\Python\Python311\Lib\site-packages\flet_init_.py)
The text was updated successfully, but these errors were encountered:
You can get it working by importing the vector properly. There are other issues with the example however that I do not have time to resolve at the moment (Error displaying ElevatedButton),
Here is the code to import the vector properly
`import math
import threading
import time
from dataclasses import dataclass, field
from typing import Callable, Optional
import flet
from beartype.typing import List
from flet import (
ButtonStyle,
ClipBehavior,
Container,
ElevatedButton,
FilledButton,
Page,
Stack,
colors,
icons,
)
from flet_core.utils import Vector`
i try you sample floating action button menu
but error no found package vector
Traceback (most recent call last):
File "C:\Users\LENOVO\Pictures\fletapp\flet2\main.py", line 4, in
from fab import AnimatedMenuButton, MenuItem
File "C:\Users\LENOVO\Pictures\fletapp\flet2\fab.py", line 9, in
from flet import (
ImportError: cannot import name 'Vector' from 'flet' (C:\Users\LENOVO\AppData\Local\Programs\Python\Python311\Lib\site-packages\flet_init_.py)
The text was updated successfully, but these errors were encountered: