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
width = context.widthPx | |
breakpoint = AppBreakpoint.fromWidth(width) | |
margin = AppBreakpoint.margin | |
body = AppBreakpoint.body | |
padding = AppBreakpoint.padding | |
spacer = AppBreakpoint.spacer | |
visualDensity = AppBreakpoint.visDensity |
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
// Copyright 2024 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:layout_helpers/src/layout_helpers/app_breakpoint.dart'; | |
import 'package:layout_helpers/src/layout_helpers/window_size_breakpoint.dart'; | |
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
// Copyright 2024 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:layout_helpers/src/layout_helpers/breakpoint_screen_size_ext.dart'; | |
import 'package:layout_helpers/src/layout_helpers/window_size_breakpoint.dart'; | |
/// Class to assist ext methods in passing |
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
// Copyright 2024 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:layout_helpers/src/layout_helpers/window_size_breakpoint.dart'; | |
extension BreakpointScreenSizeExt on WindowSizeBreakpoint { | |
static WindowSizeBreakpoint screenSize(double width) { |
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
// Copyright 2024 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
/// WindowSizeBreakpoint according to MD3, see: | |
/// https://m3.material.io/foundations/layout/applying-layout/window-size-classes | |
/// | |
/// Just an easy way to use enumerated types in enums to |
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
// Copyright 2024 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:universal_platform/universal_platform.dart'; |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | |
import 'package:flutter_localizations/flutter_localizations.dart'; | |
import 'package:state_part_get_it/service_locator.dart'; | |
import 'package:state_part_get_it/src/custom_scroll_behavior.dart'; | |
import 'package:state_part_get_it/src/global_context.dart'; | |
import 'package:state_part_get_it/src/layout_utils.dart'; | |
import 'sample_feature/sample_item_details_view.dart'; | |
import 'sample_feature/sample_item_list_view.dart'; |
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
import 'package:flutter/material.dart'; | |
import 'package:state_part_get_it/service_locator.dart'; | |
import 'settings_controller.dart'; | |
/// Displays the various settings that can be customized by the user. | |
/// | |
/// When a user changes a setting, the SettingsController is updated and | |
/// Widgets that listen to the SettingsController are rebuilt. | |
class SettingsView extends StatelessWidget { |
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
// ambient variable to access the service locator | |
import 'package:get_it/get_it.dart'; | |
import 'package:state_part_get_it/src/settings/settings_controller.dart'; | |
import 'package:state_part_get_it/src/settings/settings_service.dart'; | |
GetIt sl = GetIt.instance; | |
void setUp() { | |
// In General register the dependent serivce | |
// before the other entity using it. |
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
// Copyright 2024 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
import 'package:adaptive_extras/src/layout_utils.dart'; | |
import 'package:adaptive_extras/src/new_surface_theme.dart'; | |
import 'package:adaptive_extras/src/surface_color_enum.dart'; | |
import 'package:adaptive_extras/src/text_direction.dart'; | |
import 'package:flutter/material.dart'; |
NewerOlder