-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readme out of date #2384
Comments
When I saw #2346, I thought the problem was fixed. So... I'm imported iced 0.12.1, copied code from https://github.com/iced-rs/iced/blob/master/examples/counter/src/main.rs //隐藏Windows上的控制台窗口
#![windows_subsystem = "windows"]
use iced::widget::{button, column, text, Column};
use iced::Alignment;
pub fn main() -> iced::Result {
iced::run("A cool counter", Counter::update, Counter::view)
}
#[derive(Default)]
struct Counter {
value: i64,
}
#[derive(Debug, Clone, Copy)]
enum Message {
Increment,
Decrement,
}
impl Counter {
fn update(&mut self, message: Message) {
match message {
Message::Increment => {
self.value += 1;
}
Message::Decrement => {
self.value -= 1;
}
}
}
fn view(&self) -> Column<Message> {
column![
button("Increment").on_press(Message::Increment),
text(self.value).size(50),
button("Decrement").on_press(Message::Decrement)
]
.padding(20)
.align_items(Alignment::Center)
}
} |
iced = "0.12" doesn't work either. |
iced = "0.12.0" doesn't work either. All of them, cannot find the |
Actually this issue is related to the The comments from @ccpwcn are unrelated to this issue itself. Was wrongfully directed here from issue #2346 which is actually the problem they're facing. I've already responded there. |
The same thing happens on the But since I don't think there is many people using the |
Is there an existing issue for this?
Is this issue related to iced?
What happened?
the readmes are out of date
version is wrong
https://github.com/iced-rs/iced/blob/ee105e3bee1bc676dcf3324693984ccda8e4e733/core/README.md
What is the expected behavior?
NA
Version
master
Operating System
Windows
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: