logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use super::{SliverConstraints, SliverGridLayout};

pub trait SliverGridDelegate {
    // Returns information about the size and position of the tiles in the grid.
    fn get_layout(&self, constraints: SliverConstraints) -> Box<dyn SliverGridLayout> {
        todo!()
    }
    
    // Override this method to return true when the children need to be laid out. [...]
    fn should_relayout(&self, old_delegate: Box<dyn SliverGridDelegate>) -> bool {
        false
    }
}

pub struct NoneSliverGridDelegate;

impl SliverGridDelegate for NoneSliverGridDelegate {
    
}