Move snackbar to design system

This commit is contained in:
Ashita Prasad
2024-12-12 04:08:20 +05:30
parent cc9e4eb787
commit 25a570d6ed
7 changed files with 3 additions and 4 deletions

View File

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
SnackBar getSnackBar(
String text, {
bool small = true,
}) {
return SnackBar(
width: small ? 300 : 500,
behavior: SnackBarBehavior.floating,
content: Text(
text,
softWrap: true,
textAlign: TextAlign.center,
),
showCloseIcon: true,
);
}

View File

@ -1,5 +1,6 @@
export 'button_icon.dart';
export 'checkbox.dart';
export 'dropdown.dart';
export 'snackbar.dart';
export 'textfield_outlined.dart';
export 'textfield_raw.dart';