mkobuolys / flutter_deck

A lightweight, customizable, and easy-to-use framework to create presentations in Flutter.
https://pub.dev/packages/flutter_deck
MIT License
179 stars 27 forks source link

feat: Add slick code styling #94

Open matthew-carroll opened 4 months ago

matthew-carroll commented 4 months ago

Description

Flutter and Dart developers want to show Flutter and Dart code. It's important that the code styling experience be top notch.

slick_slides already has great code styling. Port that approach to flutter_deck.

Requirements

matthew-carroll commented 3 months ago

@mkobuolys - Do you have any thoughts or input on this before I begin?

mkobuolys commented 3 months ago

Hey @matthew-carroll, here are my thoughts: 1) The current FlutterDeckCodeHighlight must be revisited and its implementation, ideally, should be replaced. If that's not possible, I am completely fine removing/replacing this widget and introducing a breaking change if needed. 2) The flutter_highlight dependency must be removed. 3) The current slide theme should be applied to the code highlighting (light/dark), but it should also support theme override if needed (this is how all the theming works in flutter_deck). 4) It would be nice if the code could scale and resize based on the available space. 5) Code change animation (similar to in slick_slides) would be a nice addition.