Comments (5)
@saravananmnm Can you provide flutter doctor -v and elaborate on what exactly are you trying to achieve along with expected vs actual behavior ?
Thanks.
from flutter_styled_toast.
C:\Saravanan\Flutter_sdk\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.19042.1165], locale en-US)
• Flutter version 1.22.5 at C:\Saravanan\Flutter_sdk\flutter
• Framework revision 7891006299 (9 months ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\WDSI\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[!] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
! Doctor found issues in 1 category.
from flutter_styled_toast.
@JackJonson Yes. I expect without context is getting errors. But in default constructor doesn't have the required field of context.
from flutter_styled_toast.
@saravananmnm Hi, There is a solution:
If you want to show toast without giving context, must wrap your app with StyledToast.
Simple global configuration, wrap you app with StyledToast.
StyledToast(
locale: const Locale('en', 'US'),
child: MaterialApp(
title: appTitle,
showPerformanceOverlay: showPerformance,
home: LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
return MyHomePage(
title: appTitle,
onSetting: onSettingCallback,
);
},
),
),
)
from flutter_styled_toast.
@JackJonson Thanks for the simple solution.
from flutter_styled_toast.
Related Issues (20)
- The latest version (v1.5.x) prevents child widgets from getting updated HOT 2
- Toast was not dismissed after the show HOT 3
- inheritFromWidgetOfExactType HOT 1
- Add Support Null Safety HOT 1
- It is impossible to write independent reverse animation builder.
- Could you make StyledToastTheme visible outside of library?
- How to hide the toast ? HOT 3
- Event Click To Toast To open Dialog HOT 1
- Button inside widget in showToastWidget is unclickable HOT 3
- Getting issue on flutter version 3.0.0 HOT 6
- error when build in ios HOT 4
- Issue when toast dismis. HOT 3
- Causing Error, Doesn't Run HOT 1
- Repeated "Null check operator used on a null value. Error thrown null" error HOT 1
- When I scope flutter_styled_toast in flutter >=3.10.1, viewInsects in MediaQuery don't work. HOT 3
- Dismiss with a gesture. HOT 1
- Upgrade dependencies to intl 0.18.0 HOT 3
- Selection Handle Color
- Should the BuildContext parameter in showToast really exist? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_styled_toast.