pixel9 constant

DevicePreset const pixel9

Google Pixel 9 — gesture navigation.

Implementation

static const DevicePreset pixel9 = DevicePreset(
  id: 'google-pixel-9',
  name: 'Pixel 9',
  brand: 'Google',
  year: 2024,
  platform: TargetPlatform.android,
  portraitSize: ui.Size(411.43, 923.43),
  devicePixelRatio: 2.625,
  portraitPadding: EdgeInsets.only(top: 54, bottom: 24),
  landscapePadding: EdgeInsets.only(top: 52, bottom: 24),
  portraitKeyboardHeight: 336,
  landscapeKeyboardHeight: 252,
  frame: DeviceFrame(
    size: ui.Size(455.62, 963.05),
    screenOffset: ui.Offset(20.57, 21.71),
    screenPath:
        'M 33.14,0 H 378.29 A 33.14,33.14 0 0 1 411.43,33.14 V 890.29 A 33.14,33.14 0 0 1 378.29,923.43 H 33.14 A 33.14,33.14 0 0 1 0,890.29 V 33.14 A 33.14,33.14 0 0 1 33.14,0 Z M 205.71,17.52 A 15.24,15.24 0 1 0 205.71,48 A 15.24,15.24 0 1 0 205.71,17.52 Z',
    body:
        '<svg viewBox="0 0 455.62 963.05">\n'
        '  <rect x="0" y="0" width="455.62" height="963.05" rx="77.71" fill="#424242"/>\n'
        '  <rect x="1" y="1" width="453.62" height="961.05" rx="76.71" fill="#000000"/>\n'
        '</svg>',
  ),
  systemUi: SystemUiSimulation(
    platform: TargetPlatform.android,
    statusBar: SystemUiBar(
      leading:
          '<svg viewBox="0 0 26.48 10.01">\n'
          '  <g transform="scale(0.31) translate(-118.17, -47.03)" fill="currentColor">\n'
          '    <path d="M129.206 79.3125C126.038 79.3125 123.439 78.446 121.408 76.7131C119.376 74.9801 118.297 72.75 118.169 70.0227H123.325C123.496 71.429 124.128 72.5653 125.222 73.4318C126.315 74.2983 127.658 74.7315 129.249 74.7315C131.053 74.7315 132.509 74.1776 133.616 73.0696C134.739 71.9474 135.3 70.4702 135.3 68.6378C135.3 66.8054 134.739 65.321 133.616 64.1847C132.509 63.0341 131.067 62.4588 129.291 62.4588C128.041 62.4588 126.926 62.7216 125.946 63.2472C124.98 63.7727 124.213 64.5185 123.645 65.4844H118.659L120.257 47.7997H138.773V52.4446H124.518L123.773 61.0739H124.135C125.555 59.1562 127.722 58.1974 130.634 58.1974C133.545 58.1974 135.932 59.1634 137.793 61.0952C139.668 63.027 140.605 65.4986 140.605 68.5099C140.605 71.7202 139.554 74.3267 137.452 76.3295C135.364 78.3182 132.615 79.3125 129.206 79.3125Z"/>\n'
          '    <path d="M149.862 75.2855C148.868 75.2855 148.051 74.9659 147.412 74.3267C146.773 73.6875 146.453 72.8849 146.453 71.919C146.453 70.9389 146.773 70.1364 147.412 69.5114C148.051 68.8722 148.868 68.5526 149.862 68.5526C150.871 68.5526 151.688 68.8722 152.313 69.5114C152.952 70.1364 153.271 70.9389 153.271 71.919C153.271 72.8849 152.952 73.6875 152.313 74.3267C151.688 74.9659 150.871 75.2855 149.862 75.2855ZM149.862 59.3054C148.868 59.3054 148.051 58.9929 147.412 58.3679C146.773 57.7287 146.453 56.9261 146.453 55.9602C146.453 54.9801 146.773 54.1776 147.412 53.5526C148.051 52.9134 148.868 52.5937 149.862 52.5937C150.871 52.5937 151.688 52.9134 152.313 53.5526C152.952 54.1776 153.271 54.9801 153.271 55.9602C153.271 56.9261 152.952 57.7287 152.313 58.3679C151.688 58.9929 150.871 59.3054 149.862 59.3054Z"/>\n'
          '    <path d="M167.195 78.5455V53.3395H166.833L159.183 58.7088V53.4247L167.216 47.7997H172.692V78.5455H167.195Z"/>\n'
          '    <path d="M188 64.9091V60.6477H191.75C193.313 60.6477 194.584 60.2216 195.564 59.3693C196.544 58.5028 197.034 57.3807 197.034 56.0028C197.034 54.6392 196.551 53.5526 195.586 52.7429C194.634 51.919 193.355 51.5071 191.75 51.5071C190.159 51.5071 188.867 51.9261 187.872 52.7642C186.892 53.6023 186.353 54.7457 186.253 56.1946H181.118C181.26 53.3679 182.297 51.1378 184.229 49.5043C186.161 47.8565 188.725 47.0327 191.921 47.0327C194.904 47.0327 197.382 47.8139 199.357 49.3764C201.346 50.9247 202.34 52.8778 202.34 55.2358C202.34 57.0398 201.836 58.581 200.827 59.8594C199.833 61.1378 198.483 61.9545 196.779 62.3097V62.6719C198.881 62.9134 200.536 63.7017 201.743 65.0369C202.965 66.3722 203.576 68.0625 203.576 70.108C203.576 72.75 202.468 74.9446 200.252 76.6918C198.05 78.4389 195.28 79.3125 191.942 79.3125C188.632 79.3125 185.934 78.4673 183.846 76.777C181.772 75.0866 180.664 72.8352 180.522 70.0227H185.784C185.898 71.4432 186.516 72.5795 187.638 73.4318C188.76 74.2699 190.209 74.6889 191.985 74.6889C193.746 74.6889 195.181 74.2344 196.289 73.3253C197.411 72.402 197.972 71.2159 197.972 69.767C197.972 68.2614 197.425 67.0753 196.331 66.2088C195.238 65.3423 193.746 64.9091 191.857 64.9091H188Z"/>\n'
          '  </g>\n'
          '</svg>',
      trailing:
          '<svg viewBox="0 0 63.16 11">\n'
          '  <g transform="translate(0, 0)">\n'
          '    <path d="M 7.79,10.63 L 0.55,3.85 A 10.54,10.54 0 0 1 15.03,3.85 Z" fill="currentColor"/>\n'
          '  </g>\n'
          '  <g transform="translate(20.58, 0)">\n'
          '    <path d="M 12.83,0 L 12.83,11 L 0,11 Z" fill="currentColor"/>\n'
          '  </g>\n'
          '  <g transform="translate(38.41, 0)">\n'
          '    <path d="M 3.12,0 H 18.88 A 3.12,3.12 0 0 1 22,3.12 V 7.88 A 3.12,3.12 0 0 1 18.88,11 H 3.12 A 3.12,3.12 0 0 1 0,7.88 V 3.12 A 3.12,3.12 0 0 1 3.12,0 Z M 3.3,1.28 H 18.7 A 2.02,2.02 0 0 1 20.72,3.3 V 7.7 A 2.02,2.02 0 0 1 18.7,9.72 H 3.3 A 2.02,2.02 0 0 1 1.28,7.7 V 3.3 A 2.02,2.02 0 0 1 3.3,1.28 Z" fill-rule="evenodd" fill="currentColor" fill-opacity="0.45"/>\n'
          '    <path d="M 3.12,1.83 H 13.75 A 1.28,1.28 0 0 1 15.03,3.12 V 7.88 A 1.28,1.28 0 0 1 13.75,9.17 H 3.12 A 1.28,1.28 0 0 1 1.83,7.88 V 3.12 A 1.28,1.28 0 0 1 3.12,1.83 Z" fill="currentColor"/>\n'
          '    <path d="M 22.55,3.67 L 22.55,7.33 A 1.47,1.47 0 0 0 22.55,3.67 Z" fill="currentColor" fill-opacity="0.45"/>\n'
          '  </g>\n'
          '</svg>',
      inset: 18,
    ),
    navigationBar: SystemUiBar(
      center:
          '<svg viewBox="0 0 108 4">\n'
          '  <path d="M 2,0 H 106 A 2,2 0 0 1 108,2 V 2 A 2,2 0 0 1 106,4 H 2 A 2,2 0 0 1 0,2 V 2 A 2,2 0 0 1 2,0 Z" fill="currentColor"/>\n'
          '</svg>',
      bottomInset: 9,
    ),
  ),
);