Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fluttertoast
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
fluttertoast
Commits
35ca9f6e
Unverified
Commit
35ca9f6e
authored
Nov 27, 2020
by
Ivan
Committed by
GitHub
Nov 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix web assets (#253)
parent
cb888fdd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
assets/toastify.css
+0
-0
assets/toastify.js
+0
-0
lib/fluttertoast_web.dart
+2
-2
pubspec.yaml
+2
-0
No files found.
lib/
assets/toastify.css
→
assets/toastify.css
View file @
35ca9f6e
File moved
lib/
assets/toastify.js
→
assets/toastify.js
View file @
35ca9f6e
File moved
lib/fluttertoast_web.dart
View file @
35ca9f6e
...
...
@@ -56,13 +56,13 @@ class FluttertoastWebPlugin {
..
attributes
=
{
"rel"
:
"stylesheet"
}
..
href
=
'/packages/fluttertoast/assets/toastify.css'
;
..
href
=
'
assets
/packages/fluttertoast/assets/toastify.css'
;
tags
.
add
(
css
);
final
html
.
ScriptElement
script
=
html
.
ScriptElement
()
..
async
=
true
// ..defer = true
..
src
=
"/packages/fluttertoast/assets/toastify.js"
;
..
src
=
"
assets
/packages/fluttertoast/assets/toastify.js"
;
loading
.
add
(
script
.
onLoad
.
first
);
tags
.
add
(
script
);
html
.
querySelector
(
'head'
).
children
.
addAll
(
tags
);
...
...
pubspec.yaml
View file @
35ca9f6e
...
...
@@ -25,3 +25,5 @@ flutter:
web
:
pluginClass
:
FluttertoastWebPlugin
fileName
:
fluttertoast_web.dart
assets
:
-
assets/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment