Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions example/lib/profil.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,36 @@ class Profile extends StatelessWidget {

@override
Widget build(BuildContext context) {
Widget _wrapper(AppState state, { required Widget child }) {
switch(state.currentContainer) {
Widget _wrapper(AppState state, {required Widget child}) {
switch (state.currentContainer) {
case CurrentContainer.defaultContainer:
return FB5Container(child: child,);
return FB5Container(
child: child,
);
case CurrentContainer.sm:
return FB5Container.sm(child: child,);
return FB5Container.sm(
child: child,
);
case CurrentContainer.md:
return FB5Container.md(child: child,);
return FB5Container.md(
child: child,
);
case CurrentContainer.lg:
return FB5Container.lg(child: child,);
return FB5Container.lg(
child: child,
);
case CurrentContainer.xl:
return FB5Container.xl(child: child,);
return FB5Container.xl(
child: child,
);
case CurrentContainer.xxl:
return FB5Container.xxl(child: child,);
return FB5Container.xxl(
child: child,
);
case CurrentContainer.fluid:
return FB5Container.fluid(child: child,);
return FB5Container.fluid(
child: child,
);
}
}

Expand All @@ -51,6 +65,7 @@ class Profile extends StatelessWidget {
classNames: 'col-12 mt-5',
child: const Containers(),
),

FB5Col(
classNames: 'mt-5',
child: const TestingArea(),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/getting_started.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class GettingStarted extends StatelessWidget {
),
Text(
'Notice. Changing the font size also affects all other relative values (e.g. margin and padding), as these are calculated in "rem". For example, the top slider has a padding of p-5, which means that it should use 5 times the default font size as padding.',
style: Theme.of(context).textTheme.caption,
style: Theme.of(context).textTheme.headlineMedium,
),
],
);
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/grid_area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class _GridAreaState extends State<GridArea> {
),
Text(
'You can change the classes of the cols by clicking on the text, changing it and confirming with Enter.',
style: Theme.of(context).textTheme.caption,
style: Theme.of(context).textTheme.headlineMedium,
),
const SizedBox(
height: 16.0,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/testing_area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class _TestingAreaState extends State<TestingArea> {
),
Text(
'You can change the classes of the cols by clicking on the text, changing it and confirming with Enter.',
style: Theme.of(context).textTheme.caption,
style: Theme.of(context).textTheme.headlineMedium,
),
const SizedBox(
height: 16.0,
Expand Down
2 changes: 1 addition & 1 deletion example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import FlutterMacOS
import Foundation

import path_provider_macos
import path_provider_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
Expand Down
Loading