mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Import weblink posts on dark theme
This commit is contained in:
		@@ -281,7 +281,8 @@ class _PostTileState extends State<PostTile> {
 | 
			
		||||
 | 
			
		||||
  Widget _buildPostWebLink() {
 | 
			
		||||
    return Card(
 | 
			
		||||
      color: Color.fromRGBO(0xf7, 0xf7, 0xf7, 1),
 | 
			
		||||
      color:
 | 
			
		||||
          darkTheme() ? darkerAccentColor : Color.fromRGBO(0xf7, 0xf7, 0xf7, 1),
 | 
			
		||||
      child: InkWell(
 | 
			
		||||
        onTap: () => launch(widget.post.linkURL),
 | 
			
		||||
        child: Row(
 | 
			
		||||
 
 | 
			
		||||
@@ -181,8 +181,8 @@ String htmlDecodeCharacters(String input) {
 | 
			
		||||
  return parse(input).documentElement.text;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const darkAccentColor = Colors.white70;
 | 
			
		||||
const darkerAccentColor = Colors.white30;
 | 
			
		||||
 | 
			
		||||
/// Check out whether dark theme is enabled or not
 | 
			
		||||
bool darkTheme() => preferences().getBool(PreferencesKeyList.ENABLE_DARK_THEME);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user