This file contains hidden or 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:dls_schedule/dls_schedule.dart'; | |
| import 'package:dls_schedule/src/presentation/pages/pages.dart'; | |
| import 'package:dls_schedule/src/presentation/widgets/widgets.dart'; | |
| import 'package:dls_ui_kit/dls_ui_kit.dart'; | |
| import 'package:flutter/material.dart'; | |
| /// {@template narrow_schedule_widget} | |
| /// Виджет расписания для узких экранов (мобилка, планшет) | |
| /// {@endtemplate} | |
| class NarrowScheduleWidget<T> extends StatelessWidget { |
This file contains hidden or 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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'dart:ui' as ui; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| const Color background = Colors.white; | |
| const text = 'TEXT\nSHADER'; |
This file contains hidden or 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 'dart:ui' as ui; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:meta/meta.dart'; | |
| /// {@macro screen_util} | |
| extension ScreenUtilExtension on BuildContext { | |
| /// Get current screen logical size representation | |
| /// | |
| /// phone | <= 600 dp | 4 column |
This file contains hidden or 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 OfficeLifecycleHandler with WidgetsBindingObserver { | |
| late AppLifecycleState _state; | |
| AuthBloc authBloc; | |
| SharedPreferences sharedPreferences; | |
| AppLifecycleState get state => _state; | |
| OfficeLifecycleHandler({ | |
| required this.authBloc, |
This file contains hidden or 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 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| // @dart = 2.8 | |
| import 'package:file/file.dart'; | |
| import 'package:meta/meta.dart'; | |
| import '../test_utils.dart'; |
This file contains hidden or 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'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or 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
| void _showDatePicker(context) async { | |
| Picker( | |
| itemExtent: padding35, | |
| adapter: adapter, | |
| hideHeader: true, | |
| cancelText: 'ОТМЕНА', | |
| cancelTextStyle: Theme.of(context).colorScheme.subtitle2, | |
| confirmText: 'OK', | |
| confirmTextStyle: | |
| Theme.of(context).colorScheme.subtitle2.copyWith(color: Colors.red), |
This file contains hidden or 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
| "Freezed BLoC 8.0": { | |
| "prefix": "fbloc_8.0", | |
| "body": [ | |
| "import 'package:bloc/bloc.dart';", | |
| "import 'package:freezed_annotation/freezed_annotation.dart';", | |
| "import 'package:bloc_concurrency/bloc_concurrency.dart';", | |
| "", | |
| "part '${TM_FILENAME_BASE}.freezed.dart';", | |
| "", | |
| "@freezed", |
This file contains hidden or 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
| String projectsCount(int number) => number < 20 | |
| ? "singularProject".trPluralParams( | |
| number > 1 && number < 5 ? "someProject" : "pluralProject", | |
| number, | |
| {"number": number.toString()}, | |
| ) | |
| : "singularProject".trPluralParams( | |
| number % 10 > 1 && number % 10 < 5 ? "someProject" : "pluralProject", | |
| number, | |
| {"number": number.toString()}, |
NewerOlder