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'; | |
class MultiBorderBoxDecoration extends BoxDecoration { | |
MultiBorderBoxDecoration({ | |
required this.borderSides, | |
this.boxShape = BoxShape.rectangle, | |
super.color, | |
super.image, | |
BorderRadius? super.borderRadius, | |
super.boxShadow, |
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
{ | |
"workbench.colorCustomizations": { | |
"activityBar.activeBorder": "#f9826c", | |
"activityBar.background": "#24292e", | |
"activityBar.border": "#1b1f23", | |
"activityBar.foreground": "#e1e4e8", | |
"activityBar.inactiveForeground": "#6a737d", | |
"activityBarBadge.background": "#0366d6", | |
"activityBarBadge.foreground": "#ffffff", | |
"badge.background": "#044289", |
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:bloc/bloc.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:flutter/services.dart' show rootBundle; | |
import 'package:hotel_reservation_app/core/data/models/filter_model.dart'; | |
import 'package:hotel_reservation_app/core/data/models/hotel_model.dart'; | |
import 'dart:convert'; | |
import 'home_screen_event.dart'; | |
import 'home_screen_state.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
class HotelView extends StatefulWidget { | |
const HotelView({super.key}); | |
@override | |
State<HotelView> createState() => _HotelViewState(); | |
} | |
class _HotelViewState extends State<HotelView> { | |
final List<HotelModel> hotelList = [ |
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:async'; | |
import 'dart:io'; | |
import 'package:firebase_core/firebase_core.dart'; | |
import 'package:firebase_messaging/firebase_messaging.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_screenutil/flutter_screenutil.dart'; | |
import 'package:get/get.dart'; | |
import 'package:google_mobile_ads/google_mobile_ads.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
// ignore_for_file: unused_element | |
import 'package:flutter/material.dart'; | |
final class ShowModalBottomSheetWithScaffoldView extends StatefulWidget { | |
const ShowModalBottomSheetWithScaffoldView({super.key}); | |
@override | |
State<ShowModalBottomSheetWithScaffoldView> createState() => _ShowModalBottomSheetWithScaffoldViewState(); | |
} |
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'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
// This widget is the root of your application. |
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 main() { | |
List<Object> eventList = [ | |
Event( | |
eventTime: DateTime(1961, 05, 12), | |
), | |
[ | |
Event( | |
eventTime: DateTime(1963, 05, 12), | |
), | |
Event( |
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 ArticleModel { | |
String? status; | |
int? totalResults; | |
List<Articles>? articles; | |
ArticleModel({this.status, this.totalResults, this.articles}); | |
ArticleModel.fromJson(Map<String, dynamic> json) { | |
status = json['status']; | |
totalResults = json['totalResults']; |