Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation #55

Merged
merged 12 commits into from
Jun 25, 2024
Merged
Prev Previous commit
Next Next commit
fixes from david
Daviiddoo committed Jun 25, 2024
commit aa7b0d644def22f2c70bbba89a616fcaee38d6b2
2 changes: 1 addition & 1 deletion docs/.env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_DEMO_URL=https://demo.master.forui.dev/card
NEXT_PUBLIC_DEMO_URL=https://demo.forui.dev
5 changes: 2 additions & 3 deletions docs/components/widget.tsx
Original file line number Diff line number Diff line change
@@ -8,15 +8,14 @@ interface Props {

export function Widget({name, variant = 'default', query}: Props) {
const {resolvedTheme} = useTheme();
query['theme'] = resolvedTheme;
query['theme'] = `zinc-${resolvedTheme}`;

const url = process.env['NEXT_PUBLIC_DEMO_URL'];

return (
<iframe
className="w-full border rounded"
src={`${url}/${name}/${variant}?${new URLSearchParams(query).toString()}`}
width={0}
height={0}
/>
);
}
1 change: 0 additions & 1 deletion samples/lib/sample_scaffold.dart
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@ abstract class SampleScaffold extends StatelessWidget {
Widget build(BuildContext context) => FTheme(
data: theme,
child: FScaffold(

content: Center(
child: child(context),
),
1 change: 0 additions & 1 deletion samples/lib/widgets/separator.dart
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ class SeparatorPage extends SampleScaffold {
padding: const EdgeInsets.all(16),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Flutter Forui',