miler map
This commit is contained in:
@@ -168,11 +168,14 @@ void main() {
|
||||
// selection on the bar, never four.
|
||||
final selected = tester.widget<Text>(find.text('All'));
|
||||
expect(selected.style!.color, Colors.white);
|
||||
expect(selected.style!.fontWeight, FontWeight.w700);
|
||||
// One grade heavier than this once read: the app was set in Poppins on a
|
||||
// scale stepped down to compensate for that face, and is back on Manrope
|
||||
// with the scale restored. See `FontConstants`.
|
||||
expect(selected.style!.fontWeight, FontWeight.w800);
|
||||
|
||||
final other = tester.widget<Text>(find.text('Completed'));
|
||||
expect(other.style!.color, Narrative.inkMuted);
|
||||
expect(other.style!.fontWeight, FontWeight.w600);
|
||||
expect(other.style!.fontWeight, FontWeight.w700);
|
||||
|
||||
// Exactly one filled brand pill in the bar.
|
||||
final filled = tester
|
||||
@@ -221,7 +224,10 @@ void main() {
|
||||
// lift to rank them; with both, the weight does not have to do that job
|
||||
// as well.
|
||||
final name = tester.widget<Text>(find.text('Joe Mathew'));
|
||||
expect(name.style!.fontWeight, FontWeight.w600);
|
||||
// One grade heavier than this once read: the app was set in Poppins on a
|
||||
// scale stepped down to compensate for that face, and is back on Manrope
|
||||
// with the scale restored. See `FontConstants`.
|
||||
expect(name.style!.fontWeight, FontWeight.w700);
|
||||
expect(
|
||||
name.style!.fontSize,
|
||||
greaterThan(word.style!.fontSize!),
|
||||
|
||||
Reference in New Issue
Block a user