Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| import { useEffect, useRef } from "react"; | |
| type GestureType = | |
| | "swipeUp" | |
| | "swipeDown" | |
| | "swipeLeft" | |
| | "swipeRight" | |
| | "tap" | |
| | "pinch" | |
| | "zoom"; |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| void main() { | |
| runApp( | |
| MaterialApp( | |
| theme: ThemeData( | |
| primaryColor: Colors.indigo, | |
| accentColor: Colors.pinkAccent, | |
| ), |
| //! triple des(3des) ecb pkcs5 padding encrypt/decrypt function for rust, use openssl crypto | |
| //! library. | |
| //! refer to <http://blog.csdn.net/lyjinger/article/details/1722570> | |
| //! coded by vinoca. | |
| //! 2017.11.24 | |
| #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] | |
| extern crate libc; |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |