Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
flutter [2022/09/10 20:25] alyveflutter [2026/02/19 15:15] (current) – removed caly
Line 1: Line 1:
-====== Flutter ====== 
- 
-===== POO ===== 
- 
-==== Constructeur avec paramètres nommés ==== 
-<code> 
-class Test { 
-  // ... 
-   
-  // Test(foo: 'foo', bar: 'bar'); 
-  Test({ String foo, String bar}) 
-} 
-</code> 
- 
- 
-==== Constructeur avec paramètres nommés & obligatoires ==== 
-<code> 
-class Test { 
-  // ... 
-   
-  // Test(bar: 'bar') => throw an exception because foo does not exist 
-  Test({ required String foo, String bar}) 
-} 
-</code> 
- 
-==== Surcharger un constructeur ==== 
-<code> 
-class Test { 
-  // ... 
-  Test({super.key, this.foo}); 
-   
-  Test.foo({super.key}) { 
-    foo = 'foo'; 
-  } 
-} 
-</code> 
- 
- 
-===== Widgets ===== 
- 
-* [[https://api.flutter.dev/flutter/widgets/SafeArea-class.html|SafeArea]] pour ignorer le haut du device 
-===== Librairies externes ====== 
- 
- * [[https://pub.dev/packages/smooth_page_indicator|Smooth page indicator]] 
- 
-Librairie: 
-* smooth_page_indicator