Merge pull request #21 from Iconica-Development/update-component-documentation-workflow-correct

Add component-documentation.yml correct
This commit is contained in:
Freek van de Ven 2024-02-13 16:32:19 +01:00 committed by GitHub
commit 1e1241bdf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 8 deletions

View file

@ -0,0 +1,14 @@
name: Iconica Standard Component Documentation Workflow
# Workflow Caller version: 1.0.0
on:
release:
types: [published]
workflow_dispatch:
jobs:
call-iconica-component-documentation-workflow:
uses: Iconica-Development/.github/.github/workflows/component-documentation.yml@master
secrets: inherit
permissions: write-all

View file

@ -32,7 +32,8 @@ class MyHomePage extends StatefulWidget {
} }
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
var timelineService = TimelineService(postService: LocalTimelinePostService()); var timelineService =
TimelineService(postService: LocalTimelinePostService());
var timelineOptions = options; var timelineOptions = options;
@override @override

View file

@ -10,13 +10,14 @@ import 'package:go_router/go_router.dart';
List<GoRoute> getTimelineStoryRoutes({ List<GoRoute> getTimelineStoryRoutes({
TimelineUserStoryConfiguration? configuration, TimelineUserStoryConfiguration? configuration,
}) { }) {
var config = configuration ?? TimelineUserStoryConfiguration( var config = configuration ??
userId: 'test_user', TimelineUserStoryConfiguration(
service: TimelineService( userId: 'test_user',
postService: LocalTimelinePostService(), service: TimelineService(
), postService: LocalTimelinePostService(),
optionsBuilder: (context) => const TimelineOptions(), ),
); optionsBuilder: (context) => const TimelineOptions(),
);
return <GoRoute>[ return <GoRoute>[
GoRoute( GoRoute(