├── README.md
└── flutter_custom_snackbar
├── .gitignore
├── .metadata
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_custom_snackbar
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── lib
├── main.dart
└── snackbars.dart
├── pubspec.lock
└── pubspec.yaml
/README.md:
--------------------------------------------------------------------------------
1 | # Custom SnackBar in Flutter
2 | ## Preview
3 | 
4 | ## Links
5 | ### Support Me
6 |
7 | ### Socials
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Web related
36 | lib/generated_plugin_registrant.dart
37 |
38 | # Symbolication related
39 | app.*.symbols
40 |
41 | # Obfuscation related
42 | app.*.map.json
43 |
44 | # Android Studio will place build artifacts here
45 | /android/app/debug
46 | /android/app/profile
47 | /android/app/release
48 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: cd41fdd495f6944ecd3506c21e94c6567b073278
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
17 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
18 | - platform: android
19 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
20 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
21 | - platform: ios
22 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
23 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
24 | - platform: linux
25 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
26 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
27 | - platform: macos
28 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
29 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
30 | - platform: web
31 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
32 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
33 | - platform: windows
34 | create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
35 | base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.flutter_custom_snackbar"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50 | minSdkVersion flutter.minSdkVersion
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/kotlin/com/example/flutter_custom_snackbar/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_custom_snackbar
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmirBayat0/flutter-custom-Snackbar/17042dfc598d38242ed82a2a80dfe27a9d393980/flutter_custom_snackbar/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmirBayat0/flutter-custom-Snackbar/17042dfc598d38242ed82a2a80dfe27a9d393980/flutter_custom_snackbar/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmirBayat0/flutter-custom-Snackbar/17042dfc598d38242ed82a2a80dfe27a9d393980/flutter_custom_snackbar/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmirBayat0/flutter-custom-Snackbar/17042dfc598d38242ed82a2a80dfe27a9d393980/flutter_custom_snackbar/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmirBayat0/flutter-custom-Snackbar/17042dfc598d38242ed82a2a80dfe27a9d393980/flutter_custom_snackbar/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
7 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/lib/main.dart:
--------------------------------------------------------------------------------
1 | //CodeWithFlexz on Instagram
2 |
3 | //AmirBayat0 on Github
4 | //Programming with Flexz on Youtube
5 |
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter_custom_snackbar/snackbars.dart';
8 |
9 | void main() {
10 | runApp(const MyApp());
11 | }
12 |
13 | class MyApp extends StatelessWidget {
14 | const MyApp({Key? key}) : super(key: key);
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return const MaterialApp(
19 | debugShowCheckedModeBanner: false,
20 | home: FinalView(),
21 | );
22 | }
23 | }
24 |
25 | class FinalView extends StatefulWidget {
26 | const FinalView({Key? key}) : super(key: key);
27 |
28 | @override
29 | State createState() => _FinalViewState();
30 | }
31 |
32 | class _FinalViewState extends State {
33 | @override
34 | Widget build(BuildContext context) {
35 | return SafeArea(
36 | child: Scaffold(
37 | appBar: AppBar(
38 | backgroundColor: const Color.fromARGB(255, 47, 47, 47),
39 | centerTitle: true,
40 | title: const Text("Custom Snackbar"),
41 | ),
42 | backgroundColor: const Color.fromARGB(255, 37, 37, 37),
43 | body: SizedBox(
44 | width: double.infinity,
45 | height: double.infinity,
46 | child: Column(
47 | mainAxisAlignment: MainAxisAlignment.center,
48 | children: [
49 | /// Failure
50 | MaterialButton(
51 | color: const Color(0xffc72c41),
52 | onPressed: () {
53 | ScaffoldMessenger.of(context)
54 | .showSnackBar(MySnackBars.failureSnackBar);
55 | },
56 | child: const Text(
57 | "Open SnackBar - 🔴 Failure ",
58 | style: TextStyle(color: Colors.white),
59 | ),
60 | ),
61 |
62 | /// Help
63 | MaterialButton(
64 | color: const Color(0xff3282B8),
65 | onPressed: () {
66 | ScaffoldMessenger.of(context)
67 | .showSnackBar(MySnackBars.helpSnackBar);
68 | },
69 | child: const Text(
70 | "Open SnackBar - ❔ Help ",
71 | style: TextStyle(color: Colors.white),
72 | ),
73 | ),
74 |
75 | /// Success
76 | MaterialButton(
77 | color: const Color(0xff2D6A4F),
78 | onPressed: () {
79 | ScaffoldMessenger.of(context)
80 | .showSnackBar(MySnackBars.successSnackBar);
81 | },
82 | child: const Text(
83 | "Open SnackBar - ✅ Success ",
84 | style: TextStyle(color: Colors.white),
85 | ),
86 | ),
87 |
88 | /// Warning
89 | MaterialButton(
90 | color: const Color(0xffFCA652),
91 | onPressed: () {
92 | ScaffoldMessenger.of(context)
93 | .showSnackBar(MySnackBars.warningSnackBar);
94 | },
95 | child: const Text(
96 | "Open SnackBar - ⚠ Warning",
97 | style: TextStyle(color: Colors.white),
98 | ),
99 | ),
100 |
101 | ///
102 | // const SizedBox(
103 | // height: 180,
104 | // ),
105 |
106 | // ///
107 | // const Padding(
108 | // padding: EdgeInsets.only(bottom: 15),
109 | // child: Text(
110 | // "CodewithFlexz",
111 | // style: TextStyle(
112 | // color: Colors.white30,
113 | // fontWeight: FontWeight.w300,
114 | // fontSize: 22),
115 | // ),
116 | // ),
117 | ],
118 | ),
119 | ),
120 | ));
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/lib/snackbars.dart:
--------------------------------------------------------------------------------
1 | import 'package:awesome_snackbar_content/awesome_snackbar_content.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class MySnackBars {
5 | /// failure
6 | static var failureSnackBar = SnackBar(
7 | elevation: 0,
8 | behavior: SnackBarBehavior.floating,
9 | backgroundColor: Colors.transparent,
10 | content: AwesomeSnackbarContent(
11 | title: 'On Snap!',
12 | message:
13 | 'You have failed to read this failure message.\nPlease try again!',
14 | contentType: ContentType.failure,
15 | ),
16 | );
17 |
18 | /// help
19 | static var helpSnackBar = SnackBar(
20 | elevation: 0,
21 | behavior: SnackBarBehavior.floating,
22 | backgroundColor: Colors.transparent,
23 | content: AwesomeSnackbarContent(
24 | title: 'Hi There!',
25 | message:
26 | 'You need to use this package in the app to uplift your Snackbar Experinece!',
27 | contentType: ContentType.help,
28 | ),
29 | );
30 |
31 | /// success
32 | static var successSnackBar = SnackBar(
33 | elevation: 0,
34 | behavior: SnackBarBehavior.floating,
35 | backgroundColor: Colors.transparent,
36 | content: AwesomeSnackbarContent(
37 | title: 'Congratulation!',
38 | message:
39 | 'You have successfulyy read this message.\nPlease continue working!',
40 | contentType: ContentType.success,
41 | ),
42 | );
43 |
44 | /// warning
45 | static var warningSnackBar = SnackBar(
46 | elevation: 0,
47 | behavior: SnackBarBehavior.floating,
48 | backgroundColor: Colors.transparent,
49 | content: AwesomeSnackbarContent(
50 | title: 'Warning!',
51 | message: 'You Have a warning for this message.\nPlease read carefully!',
52 | contentType: ContentType.warning,
53 | ),
54 | );
55 | }
56 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.8.2"
11 | awesome_snackbar_content:
12 | dependency: "direct main"
13 | description:
14 | name: awesome_snackbar_content
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.0.5"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.2.0"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.3.1"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.0"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.16.0"
53 | cupertino_icons:
54 | dependency: "direct main"
55 | description:
56 | name: cupertino_icons
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.0.5"
60 | fake_async:
61 | dependency: transitive
62 | description:
63 | name: fake_async
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.3.0"
67 | flutter:
68 | dependency: "direct main"
69 | description: flutter
70 | source: sdk
71 | version: "0.0.0"
72 | flutter_lints:
73 | dependency: "direct dev"
74 | description:
75 | name: flutter_lints
76 | url: "https://pub.dartlang.org"
77 | source: hosted
78 | version: "2.0.1"
79 | flutter_svg:
80 | dependency: transitive
81 | description:
82 | name: flutter_svg
83 | url: "https://pub.dartlang.org"
84 | source: hosted
85 | version: "1.1.1+1"
86 | flutter_test:
87 | dependency: "direct dev"
88 | description: flutter
89 | source: sdk
90 | version: "0.0.0"
91 | lints:
92 | dependency: transitive
93 | description:
94 | name: lints
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "2.0.0"
98 | matcher:
99 | dependency: transitive
100 | description:
101 | name: matcher
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "0.12.11"
105 | material_color_utilities:
106 | dependency: transitive
107 | description:
108 | name: material_color_utilities
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "0.1.4"
112 | meta:
113 | dependency: transitive
114 | description:
115 | name: meta
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "1.7.0"
119 | path:
120 | dependency: transitive
121 | description:
122 | name: path
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "1.8.1"
126 | path_drawing:
127 | dependency: transitive
128 | description:
129 | name: path_drawing
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "1.0.0"
133 | path_parsing:
134 | dependency: transitive
135 | description:
136 | name: path_parsing
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "1.0.0"
140 | petitparser:
141 | dependency: transitive
142 | description:
143 | name: petitparser
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "5.0.0"
147 | sky_engine:
148 | dependency: transitive
149 | description: flutter
150 | source: sdk
151 | version: "0.0.99"
152 | source_span:
153 | dependency: transitive
154 | description:
155 | name: source_span
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.8.2"
159 | stack_trace:
160 | dependency: transitive
161 | description:
162 | name: stack_trace
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "1.10.0"
166 | stream_channel:
167 | dependency: transitive
168 | description:
169 | name: stream_channel
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "2.1.0"
173 | string_scanner:
174 | dependency: transitive
175 | description:
176 | name: string_scanner
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "1.1.0"
180 | term_glyph:
181 | dependency: transitive
182 | description:
183 | name: term_glyph
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "1.2.0"
187 | test_api:
188 | dependency: transitive
189 | description:
190 | name: test_api
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "0.4.9"
194 | vector_math:
195 | dependency: transitive
196 | description:
197 | name: vector_math
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "2.1.2"
201 | xml:
202 | dependency: transitive
203 | description:
204 | name: xml
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "6.1.0"
208 | sdks:
209 | dart: ">=2.17.3 <3.0.0"
210 | flutter: ">=2.11.0-0.1.pre"
211 |
--------------------------------------------------------------------------------
/flutter_custom_snackbar/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_custom_snackbar
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.17.3 <3.0.0"
22 |
23 | # Dependencies specify other packages that your package needs in order to work.
24 | # To automatically upgrade your package dependencies to the latest versions
25 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
26 | # dependencies can be manually updated by changing the version numbers below to
27 | # the latest version available on pub.dev. To see which dependencies have newer
28 | # versions available, run `flutter pub outdated`.
29 | dependencies:
30 | flutter:
31 | sdk: flutter
32 |
33 |
34 | # The following adds the Cupertino Icons font to your application.
35 | # Use with the CupertinoIcons class for iOS style icons.
36 | cupertino_icons: ^1.0.2
37 | awesome_snackbar_content: ^0.0.5
38 |
39 | dev_dependencies:
40 | flutter_test:
41 | sdk: flutter
42 |
43 | # The "flutter_lints" package below contains a set of recommended lints to
44 | # encourage good coding practices. The lint set provided by the package is
45 | # activated in the `analysis_options.yaml` file located at the root of your
46 | # package. See that file for information about deactivating specific lint
47 | # rules and activating additional ones.
48 | flutter_lints: ^2.0.0
49 |
50 | # For information on the generic Dart part of this file, see the
51 | # following page: https://dart.dev/tools/pub/pubspec
52 |
53 | # The following section is specific to Flutter packages.
54 | flutter:
55 |
56 | # The following line ensures that the Material Icons font is
57 | # included with your application, so that you can use the icons in
58 | # the material Icons class.
59 | uses-material-design: true
60 |
61 | # To add assets to your application, add an assets section, like this:
62 | # assets:
63 | # - images/a_dot_burr.jpeg
64 | # - images/a_dot_ham.jpeg
65 |
66 | # An image asset can refer to one or more resolution-specific "variants", see
67 | # https://flutter.dev/assets-and-images/#resolution-aware
68 |
69 | # For details regarding adding assets from package dependencies, see
70 | # https://flutter.dev/assets-and-images/#from-packages
71 |
72 | # To add custom fonts to your application, add a fonts section here,
73 | # in this "flutter" section. Each entry in this list should have a
74 | # "family" key with the font family name, and a "fonts" key with a
75 | # list giving the asset and other descriptors for the font. For
76 | # example:
77 | # fonts:
78 | # - family: Schyler
79 | # fonts:
80 | # - asset: fonts/Schyler-Regular.ttf
81 | # - asset: fonts/Schyler-Italic.ttf
82 | # style: italic
83 | # - family: Trajan Pro
84 | # fonts:
85 | # - asset: fonts/TrajanPro.ttf
86 | # - asset: fonts/TrajanPro_Bold.ttf
87 | # weight: 700
88 | #
89 | # For details regarding fonts from package dependencies,
90 | # see https://flutter.dev/custom-fonts/#from-packages
91 |
--------------------------------------------------------------------------------