Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
refactor: Added title for Community again
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed Jun 28, 2024
1 parent a4c7aee commit 3cfc037
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions lib/pages/home/community.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import 'package:flutter/material.dart';
import 'package:langx_flutter/pages/home/filters.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

// Components Import
import 'package:langx_flutter/components/community/usercard.dart';
import 'package:langx_flutter/providers/user_provider.dart';

// Pages Import
import 'package:langx_flutter/pages/home/filters.dart';

class Community extends ConsumerStatefulWidget {
const Community({super.key});

Expand Down Expand Up @@ -70,20 +72,25 @@ class _CommunityState extends ConsumerState<Community> {
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
IconButton(
icon: const Icon(Icons.search, size: 30),
onPressed: () {},
),
const SizedBox(width: 10.0),
IconButton(
icon: const Icon(Icons.filter_list, size: 30),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const FiltersPage()),
);
},
const Text("Community"),
Row(
children: [
IconButton(
icon: const Icon(Icons.search, size: 30),
onPressed: () {},
),
const SizedBox(width: 10.0),
IconButton(
icon: const Icon(Icons.filter_list, size: 30),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const FiltersPage()),
);
},
),
],
),
],
),
Expand Down

0 comments on commit 3cfc037

Please sign in to comment.