mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Improve widget
This commit is contained in:
		@@ -76,27 +76,27 @@ class _NotificationsScreenState extends State<NotificationsScreen> {
 | 
			
		||||
        child: CircularProgressIndicator(),
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
    return Column(
 | 
			
		||||
      children: [
 | 
			
		||||
        Expanded(
 | 
			
		||||
          child: Stack(children: [
 | 
			
		||||
            RefreshIndicator(
 | 
			
		||||
              key: _refreshKey,
 | 
			
		||||
              child: _buildBody(),
 | 
			
		||||
              onRefresh: _loadList,
 | 
			
		||||
            ),
 | 
			
		||||
            // Add conversation button
 | 
			
		||||
            Positioned(
 | 
			
		||||
              right: 20.0,
 | 
			
		||||
              bottom: 20.0,
 | 
			
		||||
              child: FloatingActionButton(
 | 
			
		||||
                onPressed: () => _deleteAllNotifications(),
 | 
			
		||||
                child: Icon(Icons.delete),
 | 
			
		||||
              ),
 | 
			
		||||
            ),
 | 
			
		||||
          ]),
 | 
			
		||||
        )
 | 
			
		||||
      ],
 | 
			
		||||
    return Container(
 | 
			
		||||
      height: double.infinity,
 | 
			
		||||
      child: Stack(children: [
 | 
			
		||||
        Container(
 | 
			
		||||
          height: double.infinity,
 | 
			
		||||
          child: RefreshIndicator(
 | 
			
		||||
            key: _refreshKey,
 | 
			
		||||
            child: _buildBody(),
 | 
			
		||||
            onRefresh: _loadList,
 | 
			
		||||
          ),
 | 
			
		||||
        ),
 | 
			
		||||
        // Add conversation button
 | 
			
		||||
        Positioned(
 | 
			
		||||
          right: 20.0,
 | 
			
		||||
          bottom: 20.0,
 | 
			
		||||
          child: FloatingActionButton(
 | 
			
		||||
            onPressed: () => _deleteAllNotifications(),
 | 
			
		||||
            child: Icon(Icons.delete),
 | 
			
		||||
          ),
 | 
			
		||||
        ),
 | 
			
		||||
      ]),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user