A Neovim plugin for generating bloc and cubit boiler plate code.
Screen.Recording.2024-03-03.at.8.36.46.PM.mov
- Generate bloc boiler plate code
- Generate cubit boiler plate code
- With lazy.nvim
{
'wa11breaker/flutter-bloc.nvim'
}
- With packer.nvim
use {
'wa11breaker/flutter-bloc.nvim'
}
This plugin offers two commands out of the box to generate boilerplate code:
FlutterCreateBloc
FlutterCreateCubit
Alternatively, you can create your custom commands.
Example custom key mappings in Lua:
vim.keymap.set("n", "<Leader>cfb", "<cmd>lua require('flutter-bloc').create_bloc()<cr>", { desc = '[C]reate [F]lutter [B]loc' })
vim.keymap.set("n", "<Leader>cfc", "<cmd>lua require('flutter-bloc').create_cubit()<cr>", { desc = '[C]reate [F]lutter [C]ubit' })