mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	design: Make load more button an elevated button
This commit is contained in:
		
							parent
							
								
									8dea650300
								
							
						
					
					
						commit
						6ab0b02c6b
					
				@ -277,20 +277,14 @@ class ChatView extends StatelessWidget {
 | 
			
		||||
                                            child: CircularProgressIndicator(),
 | 
			
		||||
                                          )
 | 
			
		||||
                                        : controller.canLoadMore
 | 
			
		||||
                                            ? TextButton(
 | 
			
		||||
                                                onPressed:
 | 
			
		||||
                                                    controller.requestHistory,
 | 
			
		||||
                                                child: Text(
 | 
			
		||||
                                                  L10n.of(context).loadMore,
 | 
			
		||||
                                                  style: TextStyle(
 | 
			
		||||
                                                    color: Theme.of(context)
 | 
			
		||||
                                                        .primaryColor,
 | 
			
		||||
                                                    fontWeight: FontWeight.bold,
 | 
			
		||||
                                                    decoration: TextDecoration
 | 
			
		||||
                                                        .underline,
 | 
			
		||||
                                                  ),
 | 
			
		||||
                                            ? Center(
 | 
			
		||||
                                              child: OutlinedButton(
 | 
			
		||||
                                                  onPressed:
 | 
			
		||||
                                                      controller.requestHistory,
 | 
			
		||||
                                                  child: Text(
 | 
			
		||||
                                                      L10n.of(context).loadMore),
 | 
			
		||||
                                                ),
 | 
			
		||||
                                              )
 | 
			
		||||
                                            )
 | 
			
		||||
                                            : Container()
 | 
			
		||||
                                    : i == 0
 | 
			
		||||
                                        ? StreamBuilder(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user