mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	 1cbedb3277
			
		
	
	
		1cbedb3277
		
			
		
	
	
	
	
		
			
			* chore: update board UI in dark mode 1. Update BoardSettingList&BoardToolbar UI 2. Update item detail dailogue UI * chore: update URL cell UI * chore: update checkList pop up UI and shadow color * chore: fix flutter analyze issue * chore: update URL popup textfield and change new property text * chore: Update NumberTypeOptionWidget and options title UI * chore: make color value more readable * chore: flutter analyze * chore: update sort button style
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:appflowy/startup/startup.dart';
 | |
| import 'package:flowy_infra/size.dart';
 | |
| import 'package:flowy_infra_ui/style_widget/text.dart';
 | |
| import 'package:flutter/material.dart';
 | |
| import 'package:fluttertoast/fluttertoast.dart';
 | |
| 
 | |
| class FlowyMessageToast extends StatelessWidget {
 | |
|   final String message;
 | |
|   const FlowyMessageToast({required this.message, Key? key}) : super(key: key);
 | |
| 
 | |
|   @override
 | |
|   Widget build(BuildContext context) {
 | |
|     return Container(
 | |
|       decoration: BoxDecoration(
 | |
|         borderRadius: const BorderRadius.all(Radius.circular(4)),
 | |
|         color: Theme.of(context).colorScheme.surface,
 | |
|       ),
 | |
|       child: Padding(
 | |
|         padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
 | |
|         child: FlowyText.medium(
 | |
|           message,
 | |
|           fontSize: FontSizes.s16,
 | |
|         ),
 | |
|       ),
 | |
|     );
 | |
|   }
 | |
| }
 | |
| 
 | |
| void initToastWithContext(BuildContext context) {
 | |
|   getIt<FToast>().init(context);
 | |
| }
 | |
| 
 | |
| void showMessageToast(String message) {
 | |
|   final child = FlowyMessageToast(message: message);
 | |
| 
 | |
|   getIt<FToast>().showToast(
 | |
|     child: child,
 | |
|     gravity: ToastGravity.BOTTOM,
 | |
|     toastDuration: const Duration(seconds: 3),
 | |
|   );
 | |
| }
 |