Skip to content

Instantly share code, notes, and snippets.

View muhiro12's full-sized avatar

muhiro_ muhiro12

View GitHub Profile
class App extends ConsumerWidget {
const App({Key? key}) : super(key: key);
List<BottomTabItem> get _items => BottomTabItem.values;
@override
Widget build(BuildContext context, WidgetRef ref) {
final BottomTab bottomTab = ref.watch(bottomTabProvider);
final int currentIndex = _items.indexOf(bottomTab.item);
return MaterialApp(
@muhiro12
muhiro12 / docker-swagger-ui.sh
Last active February 21, 2020 15:22
docker-swagger-ui.sh
docker run --rm \
-p 8080:8080 \
-v ${PWD}/openapi.yaml:/usr/share/nginx/html/openapi.yaml \
-e API_URL=openapi.yaml \
swaggerapi/swagger-ui
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i local/openapi.yaml \
-g swift5 \
-o /local/openapi
FROM cirrusci/flutter
RUN flutter channel beta
RUN flutter upgrade
RUN flutter config --enable-web
version: '3'
services:
web:
build: .
volumes:
- ./flutter_app:/build
working_dir: /build
command: >
bash -c 'flutter create . &&