This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm \ | |
-p 8080:8080 \ | |
-v ${PWD}/openapi.yaml:/usr/share/nginx/html/openapi.yaml \ | |
-e API_URL=openapi.yaml \ | |
swaggerapi/swagger-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \ | |
-i local/openapi.yaml \ | |
-g swift5 \ | |
-o /local/openapi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM cirrusci/flutter | |
RUN flutter channel beta | |
RUN flutter upgrade | |
RUN flutter config --enable-web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
build: . | |
volumes: | |
- ./flutter_app:/build | |
working_dir: /build | |
command: > | |
bash -c 'flutter create . && |