File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ library ;
2+ 
3+ export  'stac_screen.dart' ;
Original file line number Diff line number Diff line change 1+ /// Annotation to mark methods that return StacWidget instances. 
2+ /// 
3+ /// This annotation is used to identify screen-level widgets in the Stac framework. 
4+ /// Methods that return StacWidget should be annotated with this to indicate 
5+ /// they represent screen definitions. 
6+ /// 
7+ /// Example usage: 
8+ /// ```dart 
9+ /// @StacScreen('home')  
10+ /// StacWidget buildHomeScreen() {  
11+ ///   return StacWidget(jsonData: {'type': 'scaffold', 'body': '...'});  
12+ /// }  
13+ /// ``` 
14+ class  StacScreen  {
15+   /// Creates a [StacScreen]  annotation with the given screen name. 
16+    const  StacScreen (this .screenName);
17+ 
18+   /// The name identifier for this screen. 
19+    final  String  screenName;
20+ }
Original file line number Diff line number Diff line change 22
33export  'stac_action.dart' ;
44export  'stac_widget.dart' ;
5+ export  '../annotations/annotations.dart' ;
Original file line number Diff line number Diff line change 11library ;
22
33export  'actions/actions.dart' ;
4+ export  'annotations/annotations.dart' ;
45export  'core/core.dart' ;
56export  'foundation/foundation.dart' ;
67export  'widgets/widgets.dart' ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments