Skip to content

Commit

Permalink
fix: prevent using media query in header layout to avoid unnecessary …
Browse files Browse the repository at this point in the history
…re-builds
  • Loading branch information
gabaldon committed Nov 28, 2023
1 parent 59d0ac3 commit 43e4f1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/widgets/layouts/headerLayout.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:my_wit_wallet/util/get_window_width.dart';
import 'package:my_wit_wallet/constants.dart';
import 'package:my_wit_wallet/theme/extended_theme.dart';
import 'package:my_wit_wallet/theme/wallet_theme.dart';
Expand All @@ -11,7 +10,7 @@ class Customshape extends CustomClipper<Path> {
double width = size.width;

var path = Path();
double r = windowWidth * 0.08;
double r = size.width * 0.095;
// Avoid too curvy shape in wide screens
double curveHeight = r > 90 ? 90 : r;
path.lineTo(0, height - curveHeight);
Expand Down

0 comments on commit 43e4f1a

Please sign in to comment.