Dart language not worked
-
I don’t see anything related to Prismatic, Dart language, or code on that page.
If you still need help, please let me know the simplest possible code snippet that does not work with Dart or whatever, so I can test locally and try to resolve any issue.
Thank you.
I’m really really sorry. I just broke my website before. Now you can open this page to see this.
By the way, I also don’t want to limit the height of the code block, no scroll bar is needed.
(I do not well in English, sorry)
Thank you so much.
Hi @harrisonqi, I really want to help but that link does not open (I waited for several minutes, just keeps on spinning). The good news is that I don’t need to see your site to investigate the issue. Just need the smallest possible dart code snippet that causes the bug. So if you can just paste the smallest possible dart snippet that will cause the bug, then I can investigate asap.
For the height of the code block, that is not something that is set by the plugin, so I am guessing that it is your theme styles that are doing it.
Thank you @specialk .
I guess you can’t open my website because China blocked.
Here’s the code:
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; Future main() async { // set preferred orientations (landscape only) await SystemChrome.setPreferredOrientations([ DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight, ]); // disable all UI overlays (show fullscreen) await SystemChrome.setEnabledSystemUIOverlays([]); } // start app runApp( Directionality( textDirection: TextDirection.ltr, child: Stack( children: [ // placeholder for game Container( color: Color(0xff27ae60), ), // joypad overlay Container(), ], ), ), );the html:
<div class="code-toolbar"><pre class="wp-block-prismatic-blocks language-dart"><code class=" language-dart">import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; Future main() async { // set preferred orientations (landscape only) await SystemChrome.setPreferredOrientations([ DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight, ]); // disable all UI overlays (show fullscreen) await SystemChrome.setEnabledSystemUIOverlays([]); } // start app runApp( Directionality( textDirection: TextDirection.ltr, child: Stack( children: [ // placeholder for game Container( color: Color(0xff27ae60), ), // joypad overlay Container(), ], ), ), );</code></pre><div class="toolbar"><div class="toolbar-item"><span>Dart</span></div></div></div>I noticed: using dart language will not be separated by “<span>”
Thank you.
By the way, if I use
Highlight.jseverything works fine, but I love
PrismaticMore-
This reply was modified 6 years ago by
harrisonqi.
-
This reply was modified 6 years ago by
harrisonqi.
Thank you very much, I think I have found a solution. It is not a problem with your plugin.
Because I am not a
PHPdeveloper, I do n’t know how to solve it. In the past few days, I have to study the source code in order to use your excellent plug-ins.Unexpectedly, because your plugin is very good, the theme I used is actually built with PrismJS! And the version is
1.17.1of the old version, and does not includeDartlanguage support.I think I can research and solve this problem by myself!
Thank you very much for your help.
I really like your plugin!Great, glad you got it sorted out.
I will mark this thread as resolved, feel free to post again with any further infos, etc.
Cheers
-
This reply was modified 6 years ago by
The topic ‘Dart language not worked’ is closed to new replies.