Skip to content

Commit

Permalink
BoxFit.cover + floatingAction for tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmar committed Aug 24, 2023
1 parent e96dd9c commit 70f0bfa
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 26 deletions.
10 changes: 0 additions & 10 deletions lib/i18n/i18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1779,16 +1779,6 @@ class I18n {
);
}

/// `Add a Note`
String get Add_a_Note {
return Intl.message(
'Add a Note',
name: 'Add_a_Note',
desc: '',
args: [],
);
}

/// `Home`
String get Home {
return Intl.message(
Expand Down
1 change: 0 additions & 1 deletion lib/i18n/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class MessageLookup extends MessageLookupByLibrary {
"Add_Account": MessageLookupByLibrary.simpleMessage("Add Account"),
"Add_Custom_Emoji":
MessageLookupByLibrary.simpleMessage("Add Custom Emoji"),
"Add_a_Note": MessageLookupByLibrary.simpleMessage("Add a Note"),
"Add_account_and_login":
MessageLookupByLibrary.simpleMessage("Add account and login?"),
"Add_now": MessageLookupByLibrary.simpleMessage("Add now"),
Expand Down
11 changes: 0 additions & 11 deletions lib/router/index/index_drawer_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import '../../models/metadata.dart';
import '../../provider/metadata_provider.dart';
import '../../provider/relay_provider.dart';
import '../../utils/index_taps.dart';
import '../edit/editor_router.dart';
import 'account_manager_component.dart';

class IndexDrawerContnetComponnent extends StatefulWidget {
Expand Down Expand Up @@ -182,16 +181,6 @@ class _IndexDrawerContnetComponnent

list.add(Expanded(child: Container()));

if (PlatformUtil.isTableMode()) {
list.add(IndexDrawerItem(
iconData: Icons.add,
name: s.Add_a_Note,
onTap: () {
EditorRouter.open(context);
},
));
}

list.add(IndexDrawerItem(
iconData: Icons.supervisor_account,
name: s.Accounts,
Expand Down
4 changes: 2 additions & 2 deletions lib/router/index/index_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ class _IndexRouter extends CustState<IndexRouter>

return Scaffold(
extendBody: true,
// floatingActionButton: addBtn,
// floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
floatingActionButton: addBtn,
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
body: Row(children: [
Container(
width: column0Width,
Expand Down
1 change: 0 additions & 1 deletion lib/router/user/user_statistics_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class _UserStatisticsComponent extends CustState<UserStatisticsComponent> {

String? pubkey;


@override
void initState() {
onFollowedTap();
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/user/metadata_top_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class _MetadataTopComponent extends State<MetadataTopComponent> {
);
} else {
bannerImage = Image.asset(
fit: BoxFit.fitWidth,
fit: BoxFit.cover,
"assets/imgs/banner.jpeg",
);
}
Expand Down

0 comments on commit 70f0bfa

Please sign in to comment.