Snack Bar Flutter In Sinhala

Snack Bar Flutter In Sinhala

Snackbar යනු ඔබේ යෙදුමේ ඉවත දැමිය හැකි උත්පතන පණිවිඩයක් සංදර්ශන කිරීමට flutter මඟින් සපයන ලද විජට් එකකි. අපගේ යෙදුම්වල යම් යම් ක්‍රියා සිදු වන්නේ නම් පරිශීලකයන් පෙන්වීමට එය භාවිතා වේ. උදාහරණයක් ලෙස, කිසියම් හේතුවක් නිසා පරිශීලක පිවිසුම් ක්‍රියාවලිය අසාර්ථක වුවහොත්, නැවත උත්සාහ කරන ලෙස පරිශීලකයාට දැනුම් දීමට අපට ස්නැක්බාර් භාවිතා කළ හැක. එය තිරය මත දිස්වන අතර, සිදු වූ ක්‍රියාව අහෝසි කිරීම වැනි මෙහෙයුම් ද සිදු කළ හැකිය. Snackbar තොරතුරු සහිත පණිවිඩය ඉතා කෙටි කාලයක් සඳහා ප්‍රදර්ශනය කරන අතර කාලය සම්පූර්ණ වූ විට එය තනිවම අතුරුදහන් වේ. ස්නැක් බාර් එකක් සඳහා නිර්දේශිත තිර කාලය තත්පර 5-10 කි. එය ෆ්ලටර් පුස්තකාලවල ද්‍රව්‍ය පැකේජයේ සපයා ඇත. ස්නැක් බාර් එකක් භාවිතා කිරීමට ඔබ "පැකේජය:flutter/material.dart" ආයාත කිරීමට අවශ්‍ය වේ.

Constructors:

SnackBar({Key key, 

@required Widget content, 

Color backgroundColor, 

double elevation, 

EdgeInsetsGeometry margin, 

EdgeInsetsGeometry padding, 

double width, 

ShapeBorder shape, 

SnackBarBehavior behavior, 

SnackBarAction action, 

Duration duration: _snackBarDisplayDuration, 

Animation animation, 

VoidCallback onVisible})

 

Properties:

  1. action: Action to perform based on snackbar.
  2. animation: Entry and the exit animation of snackbar.
  3. backgroundcolor: Snackbar background color 
  4. behavior: Behavior and location of snackbar.
  5. content: Content of snackbar.
  6. duration: The amount of time snackbar should be displayed.
  7. elevation: Elevates the snackbar by increasing shadow.
  8. margin: Space around snackbar.
  9. onVisible: Called the first time that the snackbar is visible within a scaffold.
  10. padding: space around content inside snackbar.
  11. shape: Shape of snackbar.
  12. width: Width of snackbar.

 


 We are developing Mobile application and Web application for more details visit our web site www.appslanka.lk

0 Comments

Leave a comment

Your email address will not be published. Required fields are marked *