dp 0.0.7
dp: ^0.0.7 copied to clipboard

A flutter db util

It's just a flutter dp util.

  • Usage We assume the design width is 750. And we want get 5 px size.

** Use the global

  1. Initial once
  1. convert value.

** Or create a one

var dp = Dp(context);
var size = dp.dp(5);