Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement SNO gallery #28

Merged
merged 1 commit into from
Oct 11, 2021
Merged

implement SNO gallery #28

merged 1 commit into from
Oct 11, 2021

Conversation

GreenCappuccino
Copy link
Contributor

Per #23 gallery shortcode is now implemented on same section as ngg!

Screenshot_1633845917

However, this implementation does not fetch author names.... something that has to be implemented later, and is blocked by the API.

@GreenCappuccino GreenCappuccino added the bug Something isn't working label Oct 10, 2021
@GreenCappuccino GreenCappuccino self-assigned this Oct 10, 2021
@@ -25,10 +24,9 @@ class PostsPageState extends State<PostsPage> with TickerProviderStateMixin {
Tab(child: Text("All")),
...tabCategories.map((e) => Tab(child: Text(e.name))).toList()
]),
child: Flexible(
child: TabBarView(controller: tabController, children: [
child: TabBarView(controller: tabController, children: [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small fix to prevent exception from occurring related to Flexible

@@ -16,7 +17,7 @@ import 'package:wordpress_api/wordpress_api.dart';
void main() async {
Logger.root.level = Level.INFO;
Logger.root.onRecord.listen((record) {
print(
debugPrint(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debugPrint will not attempt to print on production builds, as opposed to print

@GreenCappuccino
Copy link
Contributor Author

@daniel-n6 I recommend taking a quick look at this and pulling changes before continuing work on #18 .

@GreenCappuccino GreenCappuccino linked an issue Oct 10, 2021 that may be closed by this pull request
Copy link
Collaborator

@dwu359 dwu359 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works, although we may need enhancement later on to improve how the gallery looks

@GreenCappuccino
Copy link
Contributor Author

Yep, as I understand you're working on #18 ? This actually uses the same code to render the gallery as for NextGEN galleries... so resolving that will do so for both types of galleries.

@dwu359 dwu359 merged commit c558839 into main Oct 11, 2021
@GreenCappuccino GreenCappuccino deleted the cappy-#23 branch October 11, 2021 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MVP: Support gallery Shortcode
2 participants