mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Create empty user page
This commit is contained in:
		
							
								
								
									
										21
									
								
								lib/utils/navigation_utils.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								lib/utils/navigation_utils.dart
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
import 'package:comunic/ui/routes/user_page_route.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:meta/meta.dart';
 | 
			
		||||
 | 
			
		||||
/// Navigation utilities
 | 
			
		||||
///
 | 
			
		||||
/// @author Pierre HUBERT
 | 
			
		||||
 | 
			
		||||
/// Open the page of a user
 | 
			
		||||
void openUserPage({@required int userID, @required BuildContext context}) {
 | 
			
		||||
  assert(userID != null);
 | 
			
		||||
  assert(context != null);
 | 
			
		||||
 | 
			
		||||
  Navigator.of(context).push(
 | 
			
		||||
    MaterialPageRoute(
 | 
			
		||||
      builder: (c) => UserPageRoute(
 | 
			
		||||
            userID: userID,
 | 
			
		||||
          ),
 | 
			
		||||
    ),
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user