• This project
    • Loading...
  • Sign in

OnePoem / OnePoem-App

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • OnePoem-App
  • lib
  • extension
  • double_extension.dart
  • reason's avatar
    华为手机保持音频失败 · e51a41f9
    e51a41f9
    reason authored 2022-01-01 23:53:47 +0800
double_extension.dart 182 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12

import 'shared/size_fit.dart';

extension DoubleFit on double {
  double get px {
    return HYSizeFit.setPx(this);
  }

  double get rpx {
    return HYSizeFit.setRpx(this);
  }
}