refactor(ui_layout): update appbar component (close #78)
This commit is contained in:
		
							parent
							
								
									bf03324fd0
								
							
						
					
					
						commit
						6ab28d99d0
					
				@ -29,7 +29,10 @@ class AppBarLayout extends Layout {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) => Scaffold(
 | 
					  Widget build(BuildContext context) => Scaffold(
 | 
				
			||||||
        appBar: context.components.appBar.configure(title: title),
 | 
					        appBar: PreferredSize(
 | 
				
			||||||
 | 
					          preferredSize: const Size.fromHeight(60),
 | 
				
			||||||
 | 
					          child: context.components.appBar.configure(title: title),
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
        body: body,
 | 
					        body: body,
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,10 @@ class FrameLayout extends Layout {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) => Scaffold(
 | 
					  Widget build(BuildContext context) => Scaffold(
 | 
				
			||||||
        appBar: context.components.appBar.configure(title: title),
 | 
					        appBar: PreferredSize(
 | 
				
			||||||
 | 
					          preferredSize: const Size.fromHeight(60),
 | 
				
			||||||
 | 
					          child: context.components.appBar.configure(title: title),
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
        body: body,
 | 
					        body: body,
 | 
				
			||||||
        bottomNavigationBar: context.components.bottomNavigationBar.configure(
 | 
					        bottomNavigationBar: context.components.bottomNavigationBar.configure(
 | 
				
			||||||
          currentIndex: currentIndex,
 | 
					          currentIndex: currentIndex,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user