| 
									
										
										
										
											2023-12-02 20:39:03 +08:00
										 |  |  | import 'package:flowy_infra_ui/flowy_infra_ui.dart'; | 
					
						
							| 
									
										
										
										
											2023-09-28 01:17:38 -05:00
										 |  |  | import 'package:flutter/material.dart'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /// Widget for the root/initial pages in the bottom navigation bar.
 | 
					
						
							|  |  |  | class RootPlaceholderScreen extends StatelessWidget { | 
					
						
							|  |  |  |   /// Creates a RootScreen
 | 
					
						
							|  |  |  |   const RootPlaceholderScreen({ | 
					
						
							|  |  |  |     required this.label, | 
					
						
							|  |  |  |     required this.detailsPath, | 
					
						
							|  |  |  |     this.secondDetailsPath, | 
					
						
							|  |  |  |     super.key, | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /// The label
 | 
					
						
							|  |  |  |   final String label; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /// The path to the detail page
 | 
					
						
							|  |  |  |   final String detailsPath; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /// The path to another detail page
 | 
					
						
							|  |  |  |   final String? secondDetailsPath; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   @override | 
					
						
							|  |  |  |   Widget build(BuildContext context) { | 
					
						
							|  |  |  |     return Scaffold( | 
					
						
							|  |  |  |       appBar: AppBar( | 
					
						
							| 
									
										
										
										
											2023-12-02 20:39:03 +08:00
										 |  |  |         centerTitle: true, | 
					
						
							|  |  |  |         title: FlowyText.medium(label), | 
					
						
							| 
									
										
										
										
											2023-09-28 01:17:38 -05:00
										 |  |  |       ), | 
					
						
							| 
									
										
										
										
											2023-12-02 20:39:03 +08:00
										 |  |  |       body: const SizedBox.shrink(), | 
					
						
							| 
									
										
										
										
											2023-09-28 01:17:38 -05:00
										 |  |  |     ); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |