mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-04 12:03:28 +00:00 
			
		
		
		
	fix: Fix various small issues
This commit is contained in:
		
							parent
							
								
									7ff841c3d8
								
							
						
					
					
						commit
						bfa3eb9577
					
				@ -28,7 +28,7 @@ class AddButton extends StatelessWidget {
 | 
			
		||||
          onSelected: onSelected,
 | 
			
		||||
        ).show(context);
 | 
			
		||||
      },
 | 
			
		||||
      icon: svgWidget("home/add").padding(horizontal: 3, vertical: 3),
 | 
			
		||||
      icon: svgWidget("home/add", color: theme.iconColor).padding(horizontal: 3, vertical: 3),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -29,9 +29,9 @@ class ToolbarIconButton extends StatelessWidget {
 | 
			
		||||
      iconPadding: const EdgeInsets.symmetric(horizontal: 4, vertical: 4),
 | 
			
		||||
      onPressed: onPressed,
 | 
			
		||||
      width: width,
 | 
			
		||||
      icon: isToggled == true ? svgWidget(iconName, color: Colors.white) : svgWidget(iconName),
 | 
			
		||||
      icon: isToggled == true ? svgWidget(iconName, color: Colors.white) : svgWidget(iconName, color: theme.iconColor),
 | 
			
		||||
      fillColor: isToggled == true ? theme.main1 : theme.shader6,
 | 
			
		||||
      hoverColor: isToggled == true ? theme.main1 : theme.shader5,
 | 
			
		||||
      hoverColor: isToggled == true ? theme.main1 : theme.hover,
 | 
			
		||||
      tooltipText: tooltipText,
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -71,7 +71,7 @@ class TextStyles {
 | 
			
		||||
  static TextStyle get CalloutFocus => Callout.bold;
 | 
			
		||||
 | 
			
		||||
  // ignore: non_constant_identifier_names
 | 
			
		||||
  static TextStyle get Btn => quicksand.bold.size(FontSizes.s14).letterSpace(1.75);
 | 
			
		||||
  static TextStyle get Btn => quicksand.bold.size(FontSizes.s16).letterSpace(1.75);
 | 
			
		||||
 | 
			
		||||
  // ignore: non_constant_identifier_names
 | 
			
		||||
  static TextStyle get BtnSelected => quicksand.size(FontSizes.s14).letterSpace(1.75);
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@ class PrimaryTextButton extends StatelessWidget {
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    TextStyle txtStyle = TextStyles.Footnote.textColor(Colors.white);
 | 
			
		||||
    TextStyle txtStyle = TextStyles.Btn.textColor(Colors.white);
 | 
			
		||||
    return PrimaryButton(bigMode: bigMode, onPressed: onPressed, child: Text(label, style: txtStyle));
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@ class SecondaryTextButton extends StatelessWidget {
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    final theme = context.watch<AppTheme>();
 | 
			
		||||
    TextStyle txtStyle = TextStyles.Footnote.textColor(theme.main1);
 | 
			
		||||
    TextStyle txtStyle = TextStyles.Btn.textColor(theme.main1);
 | 
			
		||||
    return SecondaryButton(bigMode: bigMode, onPressed: onPressed, child: Text(label, style: txtStyle));
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user