Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use iced::{pure::{
- widget::{Container, Text},
- Element,
- }, Length};
- use crate::CounterMessage;
- pub struct MainPage;
- impl MainPage {
- pub fn view(state: &crate::Counter) -> Element<CounterMessage> {
- Container::new(Text::new("Hello from Page 2",
- state.count
- ))
- .width(Length::Fill)
- .height(Length::Fill)
- .center_x()
- .center_y()
- .into()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement