You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
		
		
			
		
	
	
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
| 
								 
											4 years ago
										 
									 | 
							
								import 'package:flutter/cupertino.dart';
							 | 
						||
| 
								 | 
							
								import 'package:flutter/foundation.dart';
							 | 
						||
| 
								 | 
							
								import 'package:flutter/material.dart';
							 | 
						||
| 
								 | 
							
								import 'package:flutter/rendering.dart';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class LoadingDialog extends StatefulWidget {
							 | 
						||
| 
								 | 
							
								  LoadingDialog({Key? key}) : super(key: key);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  @override
							 | 
						||
| 
								 | 
							
								  _LoadingDialogState createState() {
							 | 
						||
| 
								 | 
							
								    return _LoadingDialogState();
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class _LoadingDialogState extends State<LoadingDialog> {
							 | 
						||
| 
								 | 
							
								  @override
							 | 
						||
| 
								 | 
							
								  void initState() {
							 | 
						||
| 
								 | 
							
								    super.initState();
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  @override
							 | 
						||
| 
								 | 
							
								  void dispose() {
							 | 
						||
| 
								 | 
							
								    super.dispose();
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  @override
							 | 
						||
| 
								 | 
							
								  Widget build(BuildContext context) {
							 | 
						||
| 
								 | 
							
								    return Dialog(
							 | 
						||
| 
								 | 
							
								      insetPadding: const EdgeInsets.symmetric(horizontal: 60.0, vertical: 24.0),
							 | 
						||
| 
								 | 
							
								      shape: RoundedRectangleBorder(
							 | 
						||
| 
								 | 
							
								        borderRadius: BorderRadius.circular(16),
							 | 
						||
| 
								 | 
							
								      ),
							 | 
						||
| 
								 | 
							
								      elevation: 0,
							 | 
						||
| 
								 | 
							
								      backgroundColor: Colors.transparent,
							 | 
						||
| 
								 | 
							
								      child: Directionality(
							 | 
						||
| 
								 | 
							
								        textDirection: TextDirection.rtl,
							 | 
						||
| 
								 | 
							
								        child: Center(
							 | 
						||
| 
								 | 
							
								          child: Image.asset(
							 | 
						||
| 
								 | 
							
								            "assets/images/logos/loading_mohemm_logo.gif",
							 | 
						||
| 
								 | 
							
								            height: 96.0,
							 | 
						||
| 
								 | 
							
								            width: 96.0,
							 | 
						||
| 
								 | 
							
								          ),
							 | 
						||
| 
								 | 
							
								        ),
							 | 
						||
| 
								 | 
							
								      ),
							 | 
						||
| 
								 | 
							
								    );
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |