Code Monkey home page Code Monkey logo

flutter-for-wordpress-app's Introduction

Daily Logo

Flutter for Wordpress

A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

Codemagic build status

alt text

πŸ“Œ Get Flutter for Wordpress

Flutter for wordpress is currently available in free and pro version:

Flutter for Wordpress Flutter for Wordpress Pro

alt text

alt text

  • Beautiful design
  • Optimized wordpress API
  • Latest Posts, Featured Posts, and Categories post in the app
  • Supports video in the post thumbnail
  • Supports embedded video inside the post
  • Post Comments and Share
  • Infinite Scroll
  • Related posts
  • Posts search feature
  • Setting page
  • Firebase Notification
  • Beautiful design
  • Optimized wordpress API
  • Latest Posts, Featured Posts, and Categories post in the app
  • Supports video in the post thumbnail
  • Supports embedded video inside the post
  • Post Comments and Share
  • Infinite Scroll
  • Related posts
  • Posts search feature
  • Setting page
  • One Signal Notification (Notification when post is updated in wordpress dashboard)
  • Dark theme
  • Admob integrated
  • Dynamic deep link integrated
  • Caching mechanism
  • Documentation

alt text

alt text

Free and Open Source

39$ on codecanyon

alt text

alt text

πŸš€ Installation

You need to have a wordpress website before you implement the app.

If you have a wordpress website already then follow the simple steps given below to build your own Wordpress Flutter App.

πŸ”₯ Install a wordpress plugin

Install Flutter for wordpress (wp plugin) in your wordpress website before you build a mobile application. This plugin is important for the enhancement of the performance in the app. Always keep this plugin active for the mobile app to run smoothly.

If you do not want to install the plugin then you can edit the functions.php file in child theme.

πŸ“Œ Edit your wordpress theme (Skip if plugin installed)

Update the wordpress functions.php file on your theme by appending the following code at the end. The app will not function correctly if this step is not followed.

function flutter_news_rest_prepare_post($data, $post, $request) {
    $_data = $data->data;
    $_data["custom"]["td_video"] = get_post_meta($post->ID, 'td_post_video', true) ?? '';
    $_data['custom']["featured_image"] = get_the_post_thumbnail_url($post->ID, "original") ?? '';
    $_data['custom']["author"]["name"]   = get_author_name($_data['author']);
    $_data['custom']["author"]["avatar"] = get_avatar_url($_data['author']);
    $_data['custom']["categories"] = get_the_category($_data["id"]);
    $data->data = $_data;
    return $data;
}

add_filter('rest_prepare_post', 'flutter_news_rest_prepare_post', 10, 3);

// Enable comment without being loggedin
function filter_rest_allow_anonymous_comments() {
    return true;
}

add_filter('rest_allow_anonymous_comments','filter_rest_allow_anonymous_comments');

πŸ”¨ Edit the constants

Change the constants from the ./lib/common/constants.dart file. For the categories name and ID refer to your wordpress website.

// Your wordpress website URL
const String WORDPRESS_URL = "https://flutterblog.crumet.com"; 

// Featured category ID (for Home Screen top section)
const int FEATURED_ID = 2;

// Tab 2 page category name
const String PAGE2_CATEGORY_NAME = "Lifestyle";

// Tab 2 page category ID
const int PAGE2_CATEGORY_ID = 6;

// Custom categories in search tab
// Array in format
// ["Category Name", "Image Link", "Category ID"]
const List<dynamic> CUSTOM_CATEGORIES = [
  ["Lifestyle", "assets/boxed/lifestyle.png", 6],
  ["Fashion", "assets/boxed/fashion.png", 12],
  ["Music", "assets/boxed/music.png", 14],
  ["Photography", "assets/boxed/photography.png", 15],
  ["Sport", "assets/boxed/sport.png", 13],
  ["World", "assets/boxed/world.png", 11],
  ["Health", "assets/boxed/health.png", 8],
  ["Travel", "assets/boxed/travel.png", 7],
  ["Recipies", "assets/boxed/recipies.png", 10],
];

πŸ”” Push Notification (Optional)

gh This project uses firebase messaging for push notification.

To integrate push notification from firebase follow the steps:

  • Go to firebase console
  • Generate and Download google-services.json file
  • Place google-services.json file inside android/app
  • It should be ready now. Test your push notification.

For further instruction read documentation from https://pub.dev/packages/firebase_messaging

πŸ“± Screenshots

alt text alt text alt text
alt text alt text alt text
alt text alt text alt text
alt text alt text alt text

πŸ™Œ Want to Contribute?

We are open to all kinds of contributions. If you want to:

  • πŸ€” Suggest a feature
  • πŸ› Report an issue
  • πŸ‘¨β€πŸ’» Contribute to the code

πŸ“‘ LICENCE

Released under the MIT License.

flutter-for-wordpress-app's People

Contributors

avra911 avatar l3lackcurtains avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter-for-wordpress-app's Issues

error: Target of URI doesn't exist: 'package:share/share.dart'.

I successfully built the app the first time but the second time this errors showed up please help me,

error: Target of URI doesn't exist: 'package:share/share.dart'. (uri_does_not_exist at [flutter_wordpress_app] lib\pages\settings.dart:2)
error: Undefined name 'Share'. (undefined_identifier at [flutter_wordpress_app] lib\pages\settings.dart:163)
error: Target of URI doesn't exist: 'package:flutter_widget_from_html/flutter_widget_from_html.dart'. (uri_does_not_exist at [flutter_wordpress_app] lib\pages\single_article.dart:7)
error: Target of URI doesn't exist: 'package:share/share.dart'. (uri_does_not_exist at [flutter_wordpress_app] lib\pages\single_article.dart:17)
error: The method 'HtmlWidget' isn't defined for the type '_SingleArticleState'. (undefined_method at [flutter_wordpress_app] lib\pages\single_article.dart:120)
error: The method 'HtmlWidget' isn't defined for the type '_SingleArticleState'. (undefined_method at [flutter_wordpress_app] lib\pages\single_article.dart:138)
error: The method 'HtmlWidget' isn't defined for the type '_SingleArticleState'. (undefined_method at [flutter_wordpress_app] lib\pages\single_article.dart:158)
error: The method 'HtmlWidget' isn't defined for the type '_SingleArticleState'. (undefined_method at [flutter_wordpress_app] lib\pages\single_article.dart:237)
error: Undefined name 'Share'. (undefined_identifier at [flutter_wordpress_app] lib\pages\single_article.dart:329)

when i launched

Launching lib\main.dart on Infinix X652B in debug mode...
Running Gradle task 'assembleDebug'...
lib/pages/single_Article.dart:7:8: Error: Error when reading '../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.1+3/lib/flutter_widget_from_html.dart': The system cannot find the path specified.

import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
^
lib/pages/single_article.dart:7:8: Error: Error when reading '../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.1+3/lib/flutter_widget_from_html.dart': The system cannot find the path specified.

import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
^
lib/pages/single_Article.dart:120:48: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.

  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_Article.dart' ('lib/pages/single_Article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_Article.dart:138:52: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_Article.dart' ('lib/pages/single_Article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_Article.dart:158:52: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_Article.dart' ('lib/pages/single_Article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_Article.dart:237:32: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_Article.dart' ('lib/pages/single_Article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_article.dart:120:48: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_article.dart' ('lib/pages/single_article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_article.dart:138:52: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_article.dart' ('lib/pages/single_article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_article.dart:158:52: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_article.dart' ('lib/pages/single_article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^
    lib/pages/single_article.dart:237:32: Error: The method 'HtmlWidget' isn't defined for the class '_SingleArticleState'.
  • '_SingleArticleState' is from 'package:flutter_wordpress_app/pages/single_article.dart' ('lib/pages/single_article.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
    child: HtmlWidget(
    ^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4m 22s
Exception: Gradle task assembleDebug failed with exit code 1

Video post not showing

the video inside the post is not showing, and another issue its getting data of other WP plugins like post review, social share which does not work in the app. Is tr any way to stop getting that data in-app.

Running web

Hello,

I have tried to run this app using chrome. First i run these commands:

git clone https://github.com/l3lackcurtains/Flutter-for-Wordpress-App flutter_wordpress_app
fluter get
flutter create --org com.example flutter_wordpress_app

But when i run, got this:

Please check the following imports:

import 'package:flutter_wordpress_app/pages/single_Article.dart'; from flutter_wordpress_app|lib/pages/favoutite_articles.dart at 4:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/pages/favoutite_articles.dart at 3:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/widgets/articleBox.dart at 3:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/blocs/favArticleBloc.dart at 3:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/repo/favArticleRepo.dart at 1:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/repo/favArticleDao.dart at 3:1
import 'package:flutter_wordpress_app/pages/single_Article.dart'; from flutter_wordpress_app|lib/pages/local_articles.dart at 7:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/pages/local_articles.dart at 6:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/pages/search.dart at 7:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/pages/single_article.dart at 10:1
import 'package:flutter_wordpress_app/pages/single_Article.dart'; from flutter_wordpress_app|lib/pages/category_articles.dart at 7:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/pages/category_articles.dart at 6:1
import 'package:flutter_wordpress_app/pages/single_Article.dart'; from flutter_wordpress_app|lib/pages/articles.dart at 8:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/pages/articles.dart at 7:1
import 'package:flutter_wordpress_app/models/Article.dart'; from flutter_wordpress_app|lib/widgets/articleBoxFeatured.dart at 3:1

What am i doing wrong?

Articles Caching

Hi, bro...you did a great job.

I think this app needs some kind of caching system to make it loads the articles faster.

Thanks for your awesome sharing.

Dark Mode

Hello what about dark mode switch in setting? Would be nice to have it included here 😊

Latest posts not loading

Hi,

I am having a problem loading latest posts. It's always empty. The featured posts work ok but not the latest posts. Am I doing an incorrect setup?

Best regards,
Rob

Plugin generate errors while activating

The plugin generated 3 characters of unexpected output during activation. If you notice β€œheaders already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

Run error

Hello, I tried to run app at first time an I got this error:

  > Cannot find a version of 'androidx.annotation:annotation' that satisfies the version constraints: 
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'androidx.annotation:annotation:1.1.0'
       Constraint path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.lifecycle:lifecycle-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.lifecycle:lifecycle-common-java8:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.arch.core:core-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0' --> 'androidx.collection:collection:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0' --> 'androidx.versionedparcelable:versionedparcelable:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.interpolator:interpolator:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.cursoradapter:cursoradapter:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.documentfile:documentfile:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.print:print:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
       Dependency path 'io.flutter.plugins.urllauncher:url_launcher:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.arch.core:core-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s

Scroll Axis X

Hi @l3lackcurtains ,
I'm wondering about the possibility of fetching data at the and of scoll the horizontal list view in the Category() widget. So fatch a new page, as the vertical scroll?

Website not loading into the app

Good night

I am working whit code Flutter for wordpress app, I have a question.

Can you provide instructions on how you found the Featured ID and Page2 Category ID?

No Connection o.O

Hey dear creator, I followed your documentation but got the error "no internet connection".
What can that be? When I embed the Flutter Blog everything works again

untranslatable parts and a suggestion

you can't translate By[author], and post time, example : (6 months ago, 3 day ago)
also it will be nice if you count the app post views too and not only views from wordpress site posts

_Type Error

This is a really good project. I faced this error when debuging:
Exception has occurred.
_TypeError (type '(dynamic) => Article' is not a subtype of type '(String, dynamic) => MapEntry<dynamic, dynamic>' of 'transform')

The error usually occures when I scroll to the end of a list of post.

Capture

Error in "Featured_Image"

While debugging, this error pops up.

Exception has occurred.
NoSuchMethodError (NoSuchMethodError: The method '[]' was called on null.
Receiver: null
Tried calling: )

Problem loading website

Hey,
Using a pro version.
After changing "WORDPRESS_URL" a demo url to my site url, the pro application showing no Internet error, a free version working fine.

site url:
const String WORDPRESS_URL = "https://avreviews.co.il";
const int FEATURED_ID = 509;

Error:
E/flutter (14270): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: Class 'String' has no instance method 'map'.
E/flutter (14270): Receiver: "[{"id":14577,"date":"2021-01-12T19:55:00","link":"https:\/\/avreviews.co

Image size shrinks

Hey thanks for the recent issue fix, but the Htmlwidget shrinks the size on the images within it, anyways to fix it?

Embedded Audio is Not Playing

I have audio (.mp3) in my post which is embedded in post.

Instead of playing button in app i am getting whole audio file link. How to get play button in the app?

Blog Posts not loading into the app

Good Afternoon,

I am having trouble getting my Wordpress blog to propagate into the Flutter for wordpress app.
Can you provide instructions on how you found the Featured ID and Page2 Category ID? My Post ID is 4 and the blog page is active but I'm not sure why it's not playing.

// Featured category ID (for Home Screen top section)
const int FEATURED_ID = 4;

// Tab 2 page category name
const String PAGE2_CATEGORY_NAME = "Lifestyle";

// Tab 2 page category ID
const int PAGE2_CATEGORY_ID = 4;

Any help would be greatly appreciated.
Thanks,

Steve @ Gozy Mobile Solutions

why i am getting error on headline1 when i am trying to launch app on emulator

why I am getting an error on headline1 when I am trying to launch the app on the emulator


Compiler message:
lib/main.dart:23:15: Error: No named parameter with the name 'headline1'.
              headline1: TextStyle(
              ^^^^^^^^^
/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart:109:9: Context: Found this candidate, but the arguments don't match.
  const TextTheme({
        ^^^^^^^^^
lib/pages/single_Article.dart:202:40: Error: The getter 'headline1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline1'.
                                      .headline1
                                       ^^^^^^^^^
lib/pages/single_Article.dart:240:66: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.       
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
                          textStyle: Theme.of(context).textTheme.bodyText1,
                                                                 ^^^^^^^^^
lib/widgets/articleBox.dart:41:44: Error: The getter 'headline1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline1'.
                                          .headline1);
                                           ^^^^^^^^^
lib/widgets/articleBoxFeatured.dart:65:69: Error: The getter 'headline1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline1'.        
                                        Theme.of(context).textTheme.headline1);
                                                                    ^^^^^^^^^
lib/pages/single_article.dart:202:40: Error: The getter 'headline1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline1'.        
                                      .headline1
                                       ^^^^^^^^^
lib/pages/single_article.dart:240:66: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.       
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.        
                          textStyle: Theme.of(context).textTheme.bodyText1,
                                                                 ^^^^^^^^^
lib/widgets/commentBox.dart:20:70: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.        
                  return baseStyle.merge(Theme.of(context).textTheme.bodyText1);
                                                                     ^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6m 56s

how can i run on iOS

when im trying to emulate on iphone i get this error
. Im new on Flutter great job on this code bro

Error connecting to the service protocol: failed to connect to http://127.0.0.1:59248/ZV9h0hFquR0=/

full error code:

(
0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c710bc +[NSException raise:format:] + 188
3 Runner 0x0000000105bc3b9a +[FIRApp configure] + 138
4 Runner 0x0000000105cecd6c -[FLTFirebaseMessagingPlugin initWithChannel:] + 268
5 Runner 0x0000000105cecb54 +[FLTFirebaseMessagingPlugin registerWithRegistrar:] + 196
6 Runner 0x0000000105bbea93 +[GeneratedPluginRegistrant registerWithRegistry:] + 115
7 Runner <…>
Error connecting to the service protocol: failed to connect to http://127.0.0.1:59248/ZV9h0hFquR0=/
Exited (sigterm)

FeaturedPost Slide

Hello,

Nice work, keep it up.
Can you help with a code to make the featured post auto-slide?

Also posts containing images in them not showing. Any guidelines?

Thanks

Auto-push notification

Hi, bro....me again here...

It's just a question (or maybe a request)...

Will this app gets notification when a new article submitted from WP Dashboard? So, the admin doesn't need to go to FCM/GCM Console first to send the push notification to this app.

Hello

thanks i just updated to a new flutter version but now i am still having an error, please i am kind of a beginner in flutter and proper guidance would be appreciated, the app is actually for a client and i need to test that the free version works before buying the pro version
here is the error
Launching lib\main.dart on Infinix X652B in debug mode...
Running Gradle task 'assembleDebug'...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\TONY\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\webview_flutter-0.3.24\android\src\main\java\io\flutter\plugins\webviewflutter\FlutterWebView.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugKotlin'.

Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
Could not download x86_64_debug.jar (io.flutter:x86_64_debug:1.0.0-a1440ca392ca23e874a105c5f3248b495bd0e247)
> Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-a1440ca392ca23e874a105c5f3248b495bd0e247/x86_64_debug-1.0.0-a1440ca392ca23e874a105c5f3248b495bd0e247.jar'.
> Read timed out

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 8m 3s
Exception: Gradle task assembleDebug failed with exit code 1

Error

Please I encountered and error while trying to run main dart
Lib/main.dart: 115:61: Error: No named parameter with the name 'label' . BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Home'),


Context: Found this candidate,
But the arguments don't match
const BottomNavigationaBarItem({

WP Push Notification using FCM

Hi @l3lackcurtains , I think that Flutter for WP it's a project with great potential!
I had done some tests with Firebase Cloud Message using the firebase console and it's good. But I'm wondering about the possibility to receive Push notification when a post is created in WP or when someone added a comment
There are some plugin for WP Push Notification FCB but I did not found some guides that solve this specific feature with this specific app.

Until now I found this article: https://wordpress.org/support/topic/using-firebase-to-push-notification-from-wordpress/

Update flutter pubspec.yaml

Please fix for latest dependencies, because crashed with flutter_svg 0.17.4. Changed for ^0.18.0 failed again. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.