• The default language of any content posted is English.
    Do not create multi-accounts, you will be blocked!
News Hour - Flutter News App for Android & iOS with Admin Panel

News Hour - Flutter News App for Android & iOS with Admin Panel 6.0.1

raz0r

owner
Staff member
Administrator
Moderator
Messages
21,191
Files
6061
Reactions
82,079
raz0r submitted a new resource:

News Hour - Flutter News App for Android & iOS with Admin Panel - Download News Hour Flutter News App for Android & iOS with Admin Panel Codecanyon 25700781

View attachment 10809

News Hour is a complete news app with an admin panel that is developed on the Flutter framework developed by Google. It works on both android & iOS. It has all the common and special features that a typical news app has. We have used lots of animations to make this app user-friendly. It could be able to satisfy users with impressive UI design and smooth performance on both iOS and Android devices. If you are looking for a news or blog app for both...

Read more about this resource...
 
raz0r 's signature
Reacted by:
hi , i'm facing error with the app (the admin panel is done )
Code:
PS C:\Android Projet\news_app> flutter build web --web-renderer html --release

 Building with sound null safety

Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
lib/widgets/html_body.dart:46:30:
Error: The argument type 'EdgeInsets' can't be assigned to the parameter type 'Margins?'.
 - 'EdgeInsets' is from 'package:flutter/src/painting/edge_insets.dart' ('/c:/flutter/packages/flutter/lib/src/painting/edge_insets.dart').
 - 'Margins' is from 'package:flutter_html/src/style/margin.dart' ('/C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_html-3.0.0-alpha.6/lib/src/style/margin.dart').
          margin: EdgeInsets.zero,
                             ^
lib/widgets/html_body.dart:61:44:
Error: The argument type 'EdgeInsets' can't be assigned to the parameter type 'Margins?'.
 - 'EdgeInsets' is from 'package:flutter/src/painting/edge_insets.dart' ('/c:/flutter/packages/flutter/lib/src/painting/edge_insets.dart').
 - 'Margins' is from 'package:flutter_html/src/style/margin.dart' ('/C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_html-3.0.0-alpha.6/lib/src/style/margin.dart').
        "figure": Style(margin: EdgeInsets.zero, padding: EdgeInsets.zero),
                                           ^
lib/widgets/html_body.dart:64:57:
Error: The argument type 'EdgeInsets' can't be assigned to the parameter type 'Margins?'.
 - 'EdgeInsets' is from 'package:flutter/src/painting/edge_insets.dart' ('/c:/flutter/packages/flutter/lib/src/painting/edge_insets.dart').
 - 'Margins' is from 'package:flutter_html/src/style/margin.dart' ('/C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_html-3.0.0-alpha.6/lib/src/style/margin.dart').
        "p,h1,h2,h3,h4,h5,h6": Style(margin: EdgeInsets.all(20)),
                                                        ^
Error: Compilation failed.


#0      Dart2JSTarget.build (package:flutter_tools/src/build_system/targets/web.dart:225:7)
<asynchronous suspension>
#1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:847:9)
<asynchronous suspension>
#2      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
<asynchronous suspension>
#3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:785:32)
<asynchronous suspension>
#4      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
<asynchronous suspension>
#5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:785:32)
<asynchronous suspension>
#6      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:614:16)
<asynchronous suspension>
#7      buildWeb (package:flutter_tools/src/web/compile.dart:53:32)
<asynchronous suspension>
#8      BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:135:5)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#16     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#17     main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>

Compiling lib\main.dart for the Web...                             17,9s
Exception: Failed to compile application for the Web.
PS C:\Android Projet\news_app>

i have try dart pub get upgrade , flutter pub cache repair , flutter pub upgrade --major-versions but still facing this error !!!
any help will be appreciate.
 
Reacted by:
i have done it but now i'm facing another error that i don't know how to correct it
i have remade all step 5 time and still the same issue !!!

1682142414516.png
 
Reacted by:
raz0r 's signature
Reacted by:
raz0r 's signature
Reacted by:
Top