Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
justkawal committed Aug 24, 2024
1 parent 860b29c commit 59d742e
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 36 deletions.
2 changes: 0 additions & 2 deletions mingle/lib/models/artist_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class ArtistModel {
required this.assetList,
});



// dummy data
static final List<ArtistModel> dummyData = [
ArtistModel(
Expand Down
3 changes: 2 additions & 1 deletion mingle/lib/pages/tabs/feed_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class _FeedTabState extends State<FeedTab> {
return Scaffold(
backgroundColor: Colors.grey.shade200,
body: ListView(
padding: const EdgeInsets.only(top: 60, left: 25, right: 25, bottom: 140),
padding:
const EdgeInsets.only(top: 60, left: 25, right: 25, bottom: 140),
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
Expand Down
1 change: 1 addition & 0 deletions mingle/lib/utils/colors.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 2 additions & 1 deletion social_chats/lib/models/dating_profile_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class DatingProfileModel {
});

static List<String> getAssetPaths() {
final list = List.generate(13, (index) => 'assets/profiles/profile_$index.png');
final list =
List.generate(13, (index) => 'assets/profiles/profile_$index.png');
list.shuffle();
return list;
}
Expand Down
4 changes: 3 additions & 1 deletion social_chats/lib/pages/profile_scrolling_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class DatingProfilePageState extends State<DatingProfile> {
);
}
}

class ProfileScrollingPage extends StatelessWidget {
const ProfileScrollingPage({Key? key}) : super(key: key);

Expand Down Expand Up @@ -238,7 +239,8 @@ class DaitngProfileCard extends StatelessWidget {
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () => controller.swipe(CardSwiperDirection.left),
onTap: () =>
controller.swipe(CardSwiperDirection.left),
child: Container(
width: 50,
height: 50,
Expand Down
2 changes: 1 addition & 1 deletion social_chats/lib/utils/colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import 'package:flutter/material.dart';
class SocialChatsColor {
static const Color purple = Color.fromRGBO(97, 0, 255, 1);
static const Color darkGrey = Color.fromRGBO(40, 39, 39, 1);
}
}
3 changes: 1 addition & 2 deletions travel_booking/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
final textTheme = Theme.of(context).textTheme;
return MaterialApp(
theme: ThemeData(textTheme:
GoogleFonts.comicNeueTextTheme(textTheme)),
theme: ThemeData(textTheme: GoogleFonts.comicNeueTextTheme(textTheme)),
home: HomePage(),
);
}
Expand Down
52 changes: 26 additions & 26 deletions travel_booking/lib/pages/destination_detailed_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -360,28 +360,28 @@ class HotelOffersWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
height: 180,
child: ListView.builder(
padding: const EdgeInsets.only(left: 25),
scrollDirection: Axis.horizontal,
itemCount: 10,
itemBuilder: (context, index) {
final rating =
(Random.secure().nextInt(3) + 2) + Random.secure().nextDouble();
return GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Navigator.pushReplacement(
context,
CupertinoPageRoute(
builder: (context) => DestinationDetailedPage(
assetIndex: (index + shiftImageIndex) % 6,
destinationName: 'Yutoa',
),
),
);
},
child: Container(
height: 180,
child: ListView.builder(
padding: const EdgeInsets.only(left: 25),
scrollDirection: Axis.horizontal,
itemCount: 10,
itemBuilder: (context, index) {
final rating =
(Random.secure().nextInt(3) + 2) + Random.secure().nextDouble();
return GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Navigator.pushReplacement(
context,
CupertinoPageRoute(
builder: (context) => DestinationDetailedPage(
assetIndex: (index + shiftImageIndex) % 6,
destinationName: 'Yutoa',
),
),
);
},
child: Container(
margin: const EdgeInsets.only(right: 20),
height: 140,
width: 220,
Expand Down Expand Up @@ -438,10 +438,10 @@ class HotelOffersWidget extends StatelessWidget {
),
],
),
),);
},
),

),
);
},
),
);
}
}
3 changes: 1 addition & 2 deletions travel_booking/lib/utils/colors.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import 'package:flutter/material.dart';

class TravelColors {
Expand All @@ -10,4 +9,4 @@ class TravelColors {

// 143, 202, 68
static const lightGreen = Color.fromRGBO(143, 202, 68, 1);
}
}

0 comments on commit 59d742e

Please sign in to comment.