Commit 9fbdcddb authored by Nicolas Richard Walter Boeckh's avatar Nicolas Richard Walter Boeckh 💬
Browse files

Proximal points and ui

parent 802a2f34
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="splash_bg">#f3f3f3</color>
</resources>
\ No newline at end of file
......@@ -13,6 +13,6 @@
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@android:color/white</item>
<item name="android:windowBackground">@color/splash_bg</item>
</style>
</resources>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="575px" height="575px" viewBox="0 0 5750 5750" preserveAspectRatio="xMidYMid meet">
<g id="layer101" fill="#303841" stroke="none">
<path d="M0 2875 l0 -2875 2875 0 2875 0 0 2875 0 2875 -2875 0 -2875 0 0 -2875z"/>
</g>
<g id="layer102" fill="#5c6269" stroke="none">
<path d="M0 2875 l0 -2875 2875 0 2875 0 0 2875 0 2875 -2875 0 -2875 0 0 -2875z m2580 1076 c6 -11 10 -87 10 -175 l0 -156 -24 0 c-13 0 -26 6 -29 13 -4 10 -7 10 -18 0 -17 -16 -71 -17 -87 -1 -8 8 -12 50 -12 125 0 101 2 113 19 123 25 13 68 13 76 0 12 -20 26 -9 23 18 -3 25 -7 27 -55 30 -45 3 -53 6 -53 23 0 17 7 19 70 19 58 0 71 -3 80 -19z m-520 -241 l0 -190 -25 0 -25 0 0 190 0 190 25 0 25 0 0 -190z m248 174 c20 -14 22 -23 22 -124 0 -132 -5 -140 -90 -140 -84 0 -93 16 -88 151 2 86 6 103 22 115 26 19 106 18 134 -2z m465 5 c16 -9 22 -9 25 0 2 6 15 11 28 11 l24 0 0 -140 0 -140 -24 0 c-13 0 -26 6 -29 13 -4 10 -7 10 -18 0 -21 -20 -77 -16 -89 6 -5 11 -10 67 -10 125 0 97 2 106 22 120 27 19 42 20 71 5z m227 -129 l0 -140 -25 0 -25 0 0 140 0 140 25 0 25 0 0 -140z m152 28 l3 -113 28 -3 c21 -3 27 -9 27 -28 0 -28 -16 -31 -42 -7 -17 15 -18 15 -18 0 0 -11 -8 -17 -25 -17 l-25 0 0 140 0 140 25 0 c24 0 24 0 27 -112z m178 77 c0 -31 -3 -35 -25 -35 -22 0 -25 4 -25 35 0 31 3 35 25 35 22 0 25 -4 25 -35z m150 -105 l0 -140 -25 0 -25 0 0 140 0 140 25 0 25 0 0 -140z m250 120 c17 -17 20 -33 20 -124 0 -128 -6 -136 -90 -136 -84 0 -90 8 -90 136 0 127 10 144 90 144 37 0 55 -5 70 -20z m-730 -340 c0 -16 -7 -20 -30 -20 -23 0 -30 4 -30 20 0 16 7 20 30 20 23 0 30 -4 30 -20z m480 0 c0 -16 -7 -20 -30 -20 -23 0 -30 4 -30 20 0 16 7 20 30 20 23 0 30 -4 30 -20z m-472 -527 c17 -9 32 -19 32 -22 -1 -11 -315 -389 -325 -391 -5 -2 -46 64 -91 146 l-81 149 101 59 c56 32 130 76 166 97 l64 38 51 -30 c27 -16 65 -37 83 -46z m222 -131 l151 -89 90 -167 c50 -91 89 -173 87 -180 -6 -26 -423 -624 -430 -617 -4 3 -95 168 -202 365 l-195 358 172 209 c94 115 172 209 174 209 1 0 70 -40 153 -88z m-626 -171 l84 -154 -119 -146 c-66 -80 -122 -145 -126 -144 -11 4 -214 448 -206 450 4 2 64 37 133 78 69 41 131 73 138 72 7 -1 50 -71 96 -156z m1068 -90 c8 -7 -71 -130 -83 -131 -5 0 -133 228 -147 262 -4 8 215 -116 230 -131z m-1362 -166 l107 -229 -185 -226 c-102 -124 -191 -232 -198 -240 -12 -12 -14 50 -14 407 l0 422 83 50 c45 27 86 48 91 47 5 -1 57 -105 116 -231z m1420 -48 l0 -182 -23 40 c-13 22 -40 72 -61 111 l-39 72 53 76 c29 42 56 73 61 70 5 -3 9 -87 9 -187z m-1010 143 c0 -5 -4 -10 -10 -10 -5 0 -10 5 -10 10 0 6 5 10 10 10 6 0 10 -4 10 -10z m189 -401 l199 -364 -116 -170 c-64 -93 -123 -180 -132 -192 -16 -21 -22 -9 -208 388 l-192 410 122 149 c67 82 123 148 125 146 1 -1 92 -166 202 -367z m685 306 c3 -8 1 -15 -4 -15 -6 0 -10 7 -10 15 0 8 2 15 4 15 2 0 6 -7 10 -15z m136 -585 l0 -286 -175 -102 c-97 -57 -179 -100 -184 -98 -5 3 -56 94 -115 201 l-107 196 218 318 218 318 72 -131 72 -131 1 -285z m-1280 349 c0 -5 -4 -9 -10 -9 -5 0 -10 7 -10 16 0 8 5 12 10 9 6 -3 10 -10 10 -16z m179 -443 l192 -409 -53 -80 c-29 -44 -56 -84 -60 -90 -4 -6 -147 72 -348 189 l-341 199 3 52 c3 53 4 54 207 303 113 137 206 248 207 247 1 -1 88 -186 193 -411z m511 4 c0 -5 -4 -10 -10 -10 -5 0 -10 5 -10 10 0 6 5 10 10 10 6 0 10 -4 10 -10z m95 -229 c58 -107 104 -195 103 -196 -2 -1 -48 -28 -103 -60 -55 -32 -137 -80 -183 -107 l-83 -48 -53 111 -53 111 131 193 c72 106 132 192 133 191 2 -1 50 -89 108 -195z m-385 -187 c0 -8 -5 -12 -10 -9 -6 4 -8 11 -5 16 9 14 15 11 15 -7z m38 -138 c23 -51 42 -97 42 -103 0 -6 -13 -16 -30 -23 -28 -11 -35 -9 -100 29 l-70 42 52 74 c29 41 55 75 58 75 3 0 24 -42 48 -94z"/>
<path d="M2483 3843 c-9 -3 -13 -31 -13 -89 0 -69 3 -86 16 -91 35 -13 49 11 52 86 4 89 -11 113 -55 94z"/>
<path d="M2204 3837 c-3 -8 -4 -49 -2 -93 l3 -79 35 0 35 0 3 93 3 92 -36 0 c-21 0 -38 -6 -41 -13z"/>
<path d="M2734 3837 c-2 -7 -4 -49 -2 -93 l3 -79 30 0 30 0 0 90 0 90 -28 3 c-16 2 -29 -2 -33 -11z"/>
<path d="M3622 3758 l3 -93 35 0 35 0 0 90 0 90 -38 3 -38 3 3 -93z"/>
</g>
<g id="layer103" fill="#a3a6aa" stroke="none">
<path d="M0 2875 l0 -2875 2875 0 2875 0 0 2875 0 2875 -2875 0 -2875 0 0 -2875z m2694 1642 c3 -13 8 -49 12 -80 4 -32 10 -60 15 -62 4 -3 12 28 19 67 15 97 16 98 43 98 21 0 24 -7 41 -107 10 -60 20 -118 23 -130 4 -18 1 -23 -15 -23 -18 0 -21 11 -32 100 -7 55 -16 100 -20 100 -4 0 -13 -44 -21 -97 -13 -87 -17 -98 -35 -101 -20 -3 -23 4 -34 85 -17 117 -25 139 -33 87 -3 -21 -9 -69 -13 -106 -6 -59 -9 -68 -27 -68 -22 0 -22 -2 10 173 14 79 18 87 38 87 15 0 25 -7 29 -23z m256 -107 c0 -123 -1 -130 -20 -130 -19 0 -20 7 -20 130 0 123 1 130 20 130 19 0 20 -7 20 -130z m110 80 l0 -50 39 0 c26 0 41 -5 45 -16 11 -28 6 -120 -6 -132 -7 -7 -36 -12 -65 -12 l-53 0 0 130 c0 123 1 130 20 130 17 0 20 -7 20 -50z m-492 -526 c21 -15 22 -21 22 -180 l0 -164 -30 0 c-17 0 -30 5 -31 13 0 10 -2 10 -6 0 -6 -15 -71 -17 -93 -3 -23 14 -28 202 -6 235 18 28 72 35 94 13 9 -9 12 -5 12 20 l0 32 -55 0 c-47 0 -55 3 -55 18 0 10 3 22 7 25 13 14 118 7 141 -9z m-500 -256 l-3 -193 -27 -3 -28 -3 0 195 0 196 30 0 30 0 -2 -192z m243 182 c17 -10 19 -22 19 -128 0 -79 -4 -122 -12 -130 -7 -7 -40 -12 -78 -12 -38 0 -71 5 -78 12 -19 19 -16 232 4 252 18 19 114 22 145 6z m467 -2 c9 -9 12 -9 12 0 0 7 14 12 35 12 l35 0 0 -139 0 -139 -77 0 c-43 -1 -83 4 -90 10 -9 7 -13 45 -13 129 0 102 2 119 18 128 23 14 65 14 80 -1z m222 -128 l0 -140 -30 0 -30 0 0 140 0 140 30 0 30 0 0 -140z m150 37 c0 -106 7 -127 42 -127 13 0 18 -8 18 -25 0 -27 -26 -35 -48 -13 -9 9 -12 9 -12 0 0 -7 -13 -12 -30 -12 l-30 0 0 140 0 140 30 0 30 0 0 -103z m190 63 c0 -39 -1 -40 -35 -40 -34 0 -35 1 -35 40 0 39 1 40 35 40 34 0 35 -1 35 -40z m140 -100 l0 -140 -30 0 -30 0 0 140 0 140 30 0 30 0 0 -140z m254 124 c20 -20 23 -233 4 -252 -7 -7 -40 -12 -78 -12 -38 0 -71 5 -78 12 -8 8 -12 50 -12 124 0 137 5 144 90 144 40 0 64 -5 74 -16z m-734 -344 c0 -27 -3 -30 -30 -30 -27 0 -30 3 -30 30 0 27 3 30 30 30 27 0 30 -3 30 -30z m480 0 c0 -27 -3 -30 -30 -30 -27 0 -30 3 -30 30 0 27 3 30 30 30 27 0 30 -3 30 -30z m-521 -497 c45 -26 81 -50 81 -54 0 -4 -74 -97 -164 -208 l-165 -200 -80 147 c-44 81 -81 152 -83 159 -2 10 301 199 324 202 4 1 43 -20 87 -46z m275 -161 l149 -87 94 -172 93 -172 -143 -208 c-79 -114 -176 -256 -216 -315 -40 -60 -76 -108 -79 -108 -4 0 -96 165 -205 365 -138 253 -196 369 -190 378 64 82 336 407 341 407 4 0 74 -40 156 -88z m-633 -160 c67 -121 90 -156 104 -154 14 3 16 -1 11 -22 -5 -20 33 -97 194 -394 l201 -369 -131 -191 c-118 -173 -145 -222 -122 -222 4 0 66 86 137 190 71 105 132 187 136 183 9 -10 196 -353 204 -374 5 -12 -37 -41 -180 -124 -102 -59 -188 -106 -190 -103 -2 2 -27 53 -56 113 -28 61 -54 104 -56 97 -4 -10 -8 -10 -18 -2 -11 9 -26 -6 -71 -75 -32 -47 -63 -84 -70 -83 -7 2 -164 91 -348 198 l-336 195 0 46 c0 46 3 50 211 304 116 141 215 253 219 248 4 -4 91 -189 195 -410 163 -351 205 -428 205 -381 0 6 -86 194 -191 419 -136 289 -189 413 -182 421 6 7 60 74 122 150 98 120 128 169 104 168 -5 -1 -61 -66 -126 -145 -66 -80 -122 -143 -126 -141 -4 3 -54 105 -111 226 -85 182 -102 223 -90 231 119 71 266 158 270 158 3 0 44 -70 91 -157z m1079 -105 c0 -5 -21 -38 -46 -73 l-47 -65 -23 41 c-13 23 -49 89 -80 146 l-55 103 125 -72 c69 -40 125 -76 126 -80z m-1371 -154 c83 -175 112 -227 124 -225 18 3 24 -23 7 -33 -5 -3 -10 -1 -10 4 0 6 -3 11 -8 11 -4 0 -95 -108 -202 -239 -107 -132 -198 -240 -202 -240 -5 -1 -8 190 -8 423 l0 424 93 54 c50 30 94 53 95 52 2 -1 52 -105 111 -231z m1427 124 c2 -7 3 -96 2 -197 l-3 -185 -64 118 c-44 82 -67 117 -77 113 -9 -4 -14 2 -14 16 0 16 3 18 14 9 10 -9 19 -2 41 31 67 103 89 124 101 95z m-72 -307 l76 -140 0 -277 0 -278 -178 -102 c-97 -57 -181 -104 -185 -105 -11 -4 -229 392 -225 408 3 10 430 634 434 634 2 0 37 -63 78 -140z m-524 -494 c0 -8 -4 -18 -10 -21 -5 -3 -10 3 -10 14 0 12 5 21 10 21 6 0 10 -6 10 -14z m-255 -548 c24 -51 45 -99 47 -106 2 -6 -10 -21 -27 -31 l-30 -19 -70 40 c-38 23 -72 42 -74 44 -3 3 101 163 107 164 2 0 23 -42 47 -92z"/>
<path d="M3060 4360 c0 -47 2 -50 25 -50 23 0 25 3 25 50 0 47 -2 50 -25 50 -23 0 -25 -3 -25 -50z"/>
<path d="M2477 3833 c-4 -3 -7 -41 -7 -84 0 -79 9 -96 45 -83 12 5 15 25 15 90 0 81 -1 84 -23 84 -13 0 -27 -3 -30 -7z"/>
<path d="M2212 3758 l3 -93 28 -3 27 -3 0 95 0 96 -30 0 -31 0 3 -92z"/>
<path d="M2742 3758 c3 -85 5 -93 23 -93 18 0 20 8 23 93 l3 92 -26 0 -26 0 3 -92z"/>
<path d="M3632 3758 c3 -92 3 -93 28 -93 25 0 25 1 28 93 l3 92 -31 0 -31 0 3 -92z"/>
</g>
<g id="layer104" fill="#f3f3f3" stroke="none">
<path d="M0 2875 l0 -2875 2875 0 2875 0 0 2875 0 2875 -2875 0 -2875 0 0 -2875z m2706 1608 c11 -91 20 -106 28 -48 14 102 15 105 47 105 16 0 29 -1 29 -2 1 -2 11 -60 24 -130 l22 -128 -22 0 c-27 0 -31 10 -40 99 -3 39 -11 71 -15 71 -5 0 -9 -10 -9 -22 0 -12 -5 -50 -11 -85 -10 -56 -14 -63 -34 -63 -27 0 -28 4 -46 110 l-13 75 -8 -60 c-17 -126 -17 -125 -44 -125 -19 0 -24 4 -20 18 3 9 13 68 22 130 l18 112 32 0 c32 0 33 -1 40 -57z m244 -73 l0 -130 -25 0 -25 0 0 130 0 130 25 0 25 0 0 -130z m110 85 c0 -43 1 -45 28 -45 52 0 63 -18 60 -95 l-3 -70 -62 -3 -63 -3 0 131 c0 123 1 130 20 130 17 0 20 -7 20 -45z m-480 -535 c19 -19 20 -31 18 -183 l-3 -162 -32 -3 c-18 -2 -33 1 -33 6 0 6 -12 6 -30 -1 -25 -9 -36 -9 -58 4 -27 14 -27 16 -30 128 -3 135 1 144 70 139 44 -3 48 -1 46 17 -3 17 -12 21 -55 23 -49 3 -53 5 -53 28 0 23 2 24 70 24 57 0 74 -4 90 -20z m-510 -255 l0 -195 -35 0 -35 0 0 195 0 195 35 0 35 0 0 -195z m252 178 c15 -14 18 -32 18 -123 0 -133 -5 -142 -88 -148 -55 -4 -63 -2 -87 22 -26 26 -27 30 -23 130 2 68 8 109 17 119 19 24 137 24 163 0z m538 -128 l0 -143 -76 0 c-108 0 -114 7 -114 145 0 138 4 142 111 142 l79 0 0 -144z m148 3 l-3 -143 -32 -3 -33 -3 0 145 0 146 35 0 36 0 -3 -142z m152 32 l0 -110 30 -6 c25 -5 30 -11 30 -35 0 -31 -10 -35 -40 -19 -13 7 -21 7 -25 0 -3 -5 -19 -10 -36 -10 l-29 0 0 145 0 145 35 0 35 0 0 -110z m180 70 c0 -39 -1 -40 -35 -40 -34 0 -35 1 -35 40 0 39 1 40 35 40 34 0 35 -1 35 -40z m148 -102 l-3 -143 -32 -3 -33 -3 0 145 0 146 35 0 36 0 -3 -142z m256 120 c12 -17 16 -48 16 -123 0 -133 -5 -140 -100 -140 -95 0 -100 7 -100 140 0 135 7 145 100 145 60 0 71 -3 84 -22z m-734 -338 c0 -28 -2 -30 -40 -30 -38 0 -40 2 -40 30 0 28 2 30 40 30 38 0 40 -2 40 -30z m480 0 c0 -28 -2 -30 -40 -30 -38 0 -40 2 -40 30 0 28 2 30 40 30 38 0 40 -2 40 -30z m-500 -510 c30 -18 57 -34 58 -35 2 -2 -70 -94 -160 -205 -144 -177 -193 -247 -160 -226 6 3 86 98 178 211 92 112 170 203 173 201 3 -1 74 -42 156 -90 l150 -87 85 -156 c93 -171 109 -196 110 -174 0 8 -34 77 -76 153 -42 77 -74 141 -72 143 4 4 173 -91 236 -131 l23 -15 -44 -62 c-57 -81 -59 -85 -49 -91 5 -3 32 28 61 69 77 111 81 105 81 -138 0 -110 -2 -198 -4 -196 -2 2 -33 57 -69 122 -35 66 -67 115 -70 110 -3 -5 28 -71 69 -146 l74 -137 0 -284 0 -284 -173 -100 c-94 -56 -179 -103 -187 -106 -11 -4 -44 47 -126 200 -62 115 -114 199 -117 191 -3 -7 44 -103 103 -213 60 -109 108 -199 107 -200 -1 -1 -87 -52 -192 -113 l-190 -111 -52 110 c-40 84 -56 108 -68 104 -9 -4 -15 -1 -15 7 0 11 -92 -112 -119 -159 -6 -11 -94 36 -354 188 l-347 202 0 52 1 51 209 255 c116 140 210 258 210 262 0 25 -38 -16 -215 -232 -109 -132 -199 -240 -201 -240 -2 0 -4 195 -4 433 l0 432 92 52 c51 28 95 50 98 48 3 -2 55 -108 115 -235 59 -127 111 -226 115 -219 4 6 -42 115 -101 242 -60 126 -108 231 -107 233 11 9 282 164 288 164 5 0 48 -73 97 -162 48 -89 89 -154 91 -145 2 10 -33 85 -78 168 -57 105 -79 154 -72 161 6 6 82 52 169 103 l158 93 30 -18 c17 -10 55 -32 85 -50z m-97 -1802 c26 -57 47 -105 47 -108 0 -3 -15 -13 -33 -23 l-33 -18 -72 41 c-40 23 -72 46 -72 51 0 12 102 159 110 159 4 0 28 -46 53 -102z"/>
<path d="M3060 4365 c0 -41 2 -45 25 -45 23 0 25 4 25 45 0 41 -2 45 -25 45 -23 0 -25 -4 -25 -45z"/>
<path d="M2480 3755 c0 -84 1 -86 23 -83 21 3 22 8 22 83 0 75 -1 80 -22 83 -22 3 -23 1 -23 -83z"/>
<path d="M2217 3843 c-4 -3 -7 -44 -7 -90 l0 -83 30 0 30 0 0 90 c0 88 -1 90 -23 90 -13 0 -27 -3 -30 -7z"/>
<path d="M2747 3844 c-4 -4 -7 -45 -7 -91 0 -82 0 -83 25 -83 l26 0 -3 87 c-2 70 -6 88 -18 91 -9 1 -19 0 -23 -4z"/>
<path d="M3630 3760 l0 -90 30 0 30 0 0 90 0 90 -30 0 -30 0 0 -90z"/>
<path d="M2572 2404 c-67 -81 -122 -154 -122 -161 0 -8 4 -12 10 -8 22 14 242 295 238 306 -2 6 -59 -55 -126 -137z"/>
<path d="M2717 2537 c-3 -7 86 -179 196 -383 115 -210 203 -361 205 -351 3 12 -366 710 -393 745 -1 2 -5 -3 -8 -11z"/>
<path d="M3356 2133 c-115 -169 -211 -316 -214 -327 -3 -14 -1 -18 6 -11 19 19 432 626 432 635 0 6 -3 10 -7 10 -5 0 -102 -138 -217 -307z"/>
<path d="M2447 2207 c-4 -11 360 -807 378 -825 29 -29 -11 67 -176 420 -106 227 -193 414 -194 416 -2 2 -5 -3 -8 -11z"/>
<path d="M2980 1586 c-128 -189 -138 -206 -122 -206 11 0 262 363 262 379 0 27 -23 -1 -140 -173z"/>
</g>
</svg>
\ No newline at end of file
......@@ -90,7 +90,6 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
97C146F11CF9000F007C117D /* Supporting Files */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
......@@ -99,13 +98,6 @@
path = Runner;
sourceTree = "<group>";
};
97C146F11CF9000F007C117D /* Supporting Files */ = {
isa = PBXGroup;
children = (
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
......
import 'package:shared_preferences/shared_preferences.dart';
class PreferencesHandler {
static final PreferencesHandler _singleton = new PreferencesHandler._internal();
SharedPreferences _sharedPreferences;
PreferencesHandler._internal();
Future<SharedPreferences> getPreferences() async {
if (_sharedPreferences == null) {
_sharedPreferences = await SharedPreferences.getInstance();
}
return _sharedPreferences;
}
factory PreferencesHandler() => _singleton;
}
\ No newline at end of file
{
"@@last_modified": "2020-02-05T17:25:56.614777",
"ok": "OK",
"@ok": {
"type": "text",
"placeholders": {}
},
"cancel": "Annuler",
"@cancel": {
"type": "text",
"placeholders": {}
},
"none": "Aucun",
"@none": {
"type": "text",
"placeholders": {}
},
"locationPromptTitle": "L'application requiert des permissions de localisation",
"@locationPromptTitle": {
"description": "Titre pour l'annonce the requête de permissions de localisations",
"type": "text",
"placeholders": {}
},
"locationPromptReason": "Afin d'augmenter la précision de la localisation et pour utiliser Bluetooth Low Energy, cette permission est nécessaire.",
"@locationPromptReason": {
"description": "Raison pour l'annonce de requête de permissions de localisation",
"type": "text",
"placeholders": {}
},
"bluetoothAvailable": "Appareils Disponibles",
"@bluetoothAvailable": {
"type": "text",
"placeholders": {}
},
"bluetoothFrequent": "Appareils Fréquemment Utilisés",
"@bluetoothFrequent": {
"type": "text",
"placeholders": {}
},
"bluetoothInactive": "Bluetooth n'est pas actif sur votre appareil.\nL'activer ?",
"@bluetoothInactive": {
"type": "text",
"placeholders": {}
},
"bluetoothScanMessage": "Recherche d'appareils Bluetooth",
"@bluetoothScanMessage": {
"type": "text",
"placeholders": {}
},
"bluetoothUnsupported": "Cette appareil n'est pas compatible avec Bluetooth Low Energy",
"@bluetoothUnsupported": {
"type": "text",
"placeholders": {}
}
{
"@@last_modified": "2020-02-05T17:25:56.614777",
"ok": "OK",
"@ok": {
"type": "text",
"placeholders": {}
},
"cancel": "Annuler",
"@cancel": {
"type": "text",
"placeholders": {}
},
"none": "Aucun",
"@none": {
"type": "text",
"placeholders": {}
},
"locationPromptTitle": "L'application requiert des permissions de localisation",
"@locationPromptTitle": {
"description": "Titre pour l'annonce the requête de permissions de localisations",
"type": "text",
"placeholders": {}
},
"locationPromptReason": "Afin d'augmenter la précision de la localisation et pour utiliser Bluetooth Low Energy, cette permission est nécessaire.",
"@locationPromptReason": {
"description": "Raison pour l'annonce de requête de permissions de localisation",
"type": "text",
"placeholders": {}
},
"bluetoothAvailable": "Appareils Disponibles",
"@bluetoothAvailable": {
"type": "text",
"placeholders": {}
},
"bluetoothFrequent": "Appareils Fréquemment Utilisés",
"@bluetoothFrequent": {
"type": "text",
"placeholders": {}
},
"bluetoothInactive": "Bluetooth n'est pas actif sur votre appareil.\nL'activer ?",
"@bluetoothInactive": {
"type": "text",
"placeholders": {}
},
"bluetoothScanMessage": "Recherche d'appareils Bluetooth",
"@bluetoothScanMessage": {
"type": "text",
"placeholders": {}
},
"bluetoothUnsupported": "Cette appareil n'est pas compatible avec Bluetooth Low Energy",
"@bluetoothUnsupported": {
"type": "text",
"placeholders": {}
}
}
\ No newline at end of file
{
"@@last_modified": "2020-02-20T07:40:18.875039",
"ok": "OK",
"@ok": {
"type": "text",
"placeholders": {}
},
"cancel": "Cancel",
"@cancel": {
"type": "text",
"placeholders": {}
},
"none": "None",
"@none": {
"type": "text",
"placeholders": {}
},
"locationPromptTitle": "This app needs to use location services",
"@locationPromptTitle": {
"description": "Title for the location permission request prompt",
"type": "text",
"placeholders": {}
},
"locationPromptReason": "To use Bluetooth Low Energy and to increase data collection accuracy, this permission is required.",
"@locationPromptReason": {
"description": "Reason for the location permission request prompt",
"type": "text",
"placeholders": {}
},
"bluetoothAvailable": "Available Devices",
"@bluetoothAvailable": {
"type": "text",
"placeholders": {}
},
"bluetoothFrequent": "Frequently Used Devices",
"@bluetoothFrequent": {
"type": "text",
"placeholders": {}
},
"bluetoothInactive": "Bluetooth is not active on this device.\nTurn it on ?",
"@bluetoothInactive": {
"type": "text",
"placeholders": {}
},
"bluetoothScanMessage": "Scan for Bluetooth Devices",
"@bluetoothScanMessage": {
"type": "text",
"placeholders": {}
},
"bluetoothUnsupported": "This device does not support Bluetooth Low Energy",
"@bluetoothUnsupported": {
"type": "text",
"placeholders": {}
}
{
"@@last_modified": "2020-02-20T07:40:18.875039",
"ok": "OK",
"@ok": {
"type": "text",
"placeholders": {}
},
"cancel": "Cancel",
"@cancel": {
"type": "text",
"placeholders": {}
},
"none": "None",
"@none": {
"type": "text",
"placeholders": {}
},
"locationPromptTitle": "This app needs to use location services",
"@locationPromptTitle": {
"description": "Title for the location permission request prompt",
"type": "text",
"placeholders": {}
},
"locationPromptReason": "To use Bluetooth Low Energy and to increase data collection accuracy, this permission is required.",
"@locationPromptReason": {
"description": "Reason for the location permission request prompt",
"type": "text",
"placeholders": {}
},
"bluetoothAvailable": "Available Devices",
"@bluetoothAvailable": {
"type": "text",
"placeholders": {}
},
"bluetoothFrequent": "Frequently Used Devices",
"@bluetoothFrequent": {
"type": "text",
"placeholders": {}
},
"bluetoothInactive": "Bluetooth is not active on this device.\nTurn it on ?",
"@bluetoothInactive": {
"type": "text",
"placeholders": {}
},
"bluetoothScanMessage": "Scan for Bluetooth Devices",
"@bluetoothScanMessage": {
"type": "text",
"placeholders": {}
},
"bluetoothUnsupported": "This device does not support Bluetooth Low Energy",
"@bluetoothUnsupported": {
"type": "text",
"placeholders": {}
}
}
\ No newline at end of file
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:logair_application/l10n/messages_all.dart' show initializeMessages;
import 'package:logair_application/localization/l10n/messages_all.dart' show initializeMessages;
/// Reference https://github.com/dart-lang/intl https://pub.dev/packages/intl
/// Adding a localization should follow the guidelines defined here : https://github.com/flutter/website/blob/master/examples/internationalization/add_language/lib/main.dart
/// The frequent locales have already been integrated (but who knows when you'll need Belarusian).
class AppLocalization {
/// The current [Locale]
final String locale;
/// Constructor
const AppLocalization(this.locale);
/// The deferred [Locale] language loader
static Future<AppLocalization> load(Locale locale) {
/// Checks whether the queried [Locale] is defined on the fly, or had been predefined.
final String name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString();
final String localeName = Intl.canonicalizedLocale(name);
/// Load the internationalized values.
return initializeMessages(localeName).then((_) => AppLocalization(localeName));
}
static AppLocalization of(BuildContext context) => Localizations.of(context, AppLocalization);
/// The following definitions are the English base values for internationalizable dialog
/// TODO Add new because UI.
/* General Values */
String get ok => Intl.message(
'OK',
name: 'ok',
......
import 'package:flutter/cupertino.dart';
import 'package:logair_application/localization/localization.dart';
/// Enables the loading and reloading of app [Locale]s
class AppLocalizationDelegate extends LocalizationsDelegate<AppLocalization> {
const AppLocalizationDelegate();
/// Returns whether the demanded locale exists in the app's localization files
@override
bool isSupported(Locale locale) => ['en', 'fr'].contains(locale.languageCode);
bool isSupported(Locale locale) => [
'en',
'fr'
].contains(locale.languageCode);
/// Delegates the loading of [Locale] to an [async] task, which enables it to be done in the background.
@override
Future<AppLocalization> load(Locale locale) => AppLocalization.load(locale);
/// Returns whether the app should reload
@override
bool shouldReload(AppLocalizationDelegate old) => false;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment