@@ -152,7 +152,8 @@ class AppTheme {
152152 ThemeData get themeData {
153153 var t = ThemeData (
154154 textTheme: TextTheme (bodyText2: TextStyle (color: textColor)),
155- textSelectionTheme: TextSelectionThemeData (cursorColor: main2, selectionHandleColor: main2),
155+ textSelectionTheme: TextSelectionThemeData (
156+ cursorColor: main2, selectionHandleColor: main2),
156157 primaryIconTheme: IconThemeData (color: hover),
157158 iconTheme: IconThemeData (color: shader1),
158159 canvasColor: shader6,
@@ -179,7 +180,8 @@ class AppTheme {
179180 toggleableActiveColor: main1);
180181 }
181182
182- Color shift (Color c, double d) => ColorUtils .shiftHsl (c, d * (isDark ? - 1 : 1 ));
183+ Color shift (Color c, double d) =>
184+ ColorUtils .shiftHsl (c, d * (isDark ? - 1 : 1 ));
183185}
184186
185187class ColorUtils {
@@ -188,14 +190,18 @@ class ColorUtils {
188190 return hslc.withLightness ((hslc.lightness + amt).clamp (0.0 , 1.0 )).toColor ();
189191 }
190192
191- static Color parseHex (String value) => Color (int .parse (value.substring (1 , 7 ), radix: 16 ) + 0xFF000000 );
193+ static Color parseHex (String value) =>
194+ Color (int .parse (value.substring (1 , 7 ), radix: 16 ) + 0xFF000000 );
192195
193196 static Color blend (Color dst, Color src, double opacity) {
194197 return Color .fromARGB (
195198 255 ,
196- (dst.red.toDouble () * (1.0 - opacity) + src.red.toDouble () * opacity).toInt (),
197- (dst.green.toDouble () * (1.0 - opacity) + src.green.toDouble () * opacity).toInt (),
198- (dst.blue.toDouble () * (1.0 - opacity) + src.blue.toDouble () * opacity).toInt (),
199+ (dst.red.toDouble () * (1.0 - opacity) + src.red.toDouble () * opacity)
200+ .toInt (),
201+ (dst.green.toDouble () * (1.0 - opacity) + src.green.toDouble () * opacity)
202+ .toInt (),
203+ (dst.blue.toDouble () * (1.0 - opacity) + src.blue.toDouble () * opacity)
204+ .toInt (),
199205 );
200206 }
201207}
0 commit comments