Skip to content

Commit

Permalink
Merge pull request #11 from leoafarias/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
leoafarias authored Aug 13, 2024
2 parents 94e03a4 + c02448e commit b329f80
Show file tree
Hide file tree
Showing 405 changed files with 13,066 additions and 11,908 deletions.
24 changes: 12 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
"**/.fvm/flutter_sdk": true
},
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#2f7c47",
"activityBar.background": "#2f7c47",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#422c74",
"activityBar.activeBackground": "#3399ff",
"activityBar.background": "#3399ff",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#bf0060",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#2f7c47",
"statusBar.background": "#215732",
"sash.hoverBorder": "#3399ff",
"statusBar.background": "#007fff",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#2f7c47",
"statusBarItem.remoteBackground": "#215732",
"statusBarItem.hoverBackground": "#3399ff",
"statusBarItem.remoteBackground": "#007fff",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#215732",
"titleBar.activeBackground": "#007fff",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#21573299",
"titleBar.inactiveBackground": "#007fff99",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#215732"
"peacock.color": "#007fff"
}
80 changes: 36 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
![Superdeck logo](./assets/logo.png)

![Superdeck logo](./assets/logo-dark.png#gh-dark-mode-only)
![Superdeck logo](./assets/logo-light.png#gh-light-mode-only)

SuperDeck enables you to craft visually appealing and interactive presentations directly within your Flutter apps, using the simplicity and power of Markdown.

Expand All @@ -8,8 +10,6 @@ SuperDeck enables you to craft visually appealing and interactive presentations

### [Example code](https://github.com/leoafarias/superdeck/blob/main/example/slides.md)



## Getting Started

Follow these steps to integrate SuperDeck into your Flutter project:
Expand All @@ -26,7 +26,8 @@ Follow these steps to integrate SuperDeck into your Flutter project:
import 'package:superdeck/superdeck.dart';
```

3. Initialize SuperDeck and run the app.
3. Initialize SuperDeck and run the app.

```dart
void main() {
runApp(const SuperDeckApp());
Expand All @@ -44,49 +45,39 @@ Follow these steps to integrate SuperDeck into your Flutter project:
- assets/images/
```
The `assets` directory is used to slide and asset references, while the `assets/images` directory is specifically used for storing images used in your presentations.
The `assets` directory is used to slide and asset references, while the `assets/images` directory is specifically used for storing images used in your presentations.

6. Configure your app

MacOS

Change your `Release.entitlements`

```xml
<dict>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
```

Change `DebugProfile.entitlements`

```xml
<dict>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
```







MacOS

Change your `Release.entitlements`

```xml
<dict>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
```

Change `DebugProfile.entitlements`

```xml
<dict>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
```

6. Start building your slides in the `slides.md` file using Markdown syntax and SuperDeck's slide templates and configurations.
7. Start building your slides in the `slides.md` file using Markdown syntax and SuperDeck's slide templates and configurations.

### SuperDeck Options

Expand All @@ -113,6 +104,7 @@ SuperDeckApp(
```

### Shared Slide Options

Some shared options can be applied by adding them to a `superdeck.yaml` file in the root of your project. These options will be applied to all slides unless overridden by slide-specific options.

### Slide Options
Expand Down Expand Up @@ -245,9 +237,9 @@ layout: two_column_header

#### Sections

- `::header::`: The content that will be placed in the header section.
- `::left::`: The content that will be placed in the left column.
- `::right::`: The content that will be placed in the right column.
- `::header::`: The content that will be placed in the header section.
- `::left::`: The content that will be placed in the left column.
- `::right::`: The content that will be placed in the right column.

If the first tag that is found is `::left::`, everything before this tag will be placed in the `::header::` section.

Expand All @@ -269,6 +261,7 @@ sections:
Keep in mind that you can also control the flex of the `left` and `right` sections by using the `content` property.

Read more about it in the [content options](#content) section.

### Image Template

Display an image alongside the slide content.
Expand Down Expand Up @@ -322,4 +315,3 @@ The `options` property specifies the widget to be embedded. It has the following
- `position`: The position of the widget relative to the slide content.
- `flex`: The flex value of the widget.
- `args`: Additional arguments to be passed to the widget.

Binary file modified assets/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 0 additions & 45 deletions example/.metadata

This file was deleted.

67 changes: 0 additions & 67 deletions example/android/app/build.gradle

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions example/android/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions example/android/gradle.properties

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.

This file was deleted.

38 changes: 0 additions & 38 deletions example/lib/main.dart

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Loading

0 comments on commit b329f80

Please sign in to comment.