mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-05-01 11:58:09 -05:00
This commit adds a new source type "pinterest", which can be used to follow the post of an user or a board on Pinterest. To use the new source type a user can select the "Pinterest" item in the add source modal. In the form a user can provide the username or board he wants to follow via FeedDeck. In the corresponding Supabase function we then convert the input provided by the user to an valid RSS feed url for Pinterest. This means that we have to add `/feed.rss` for users and `.rss` for boards to the Pinterest url. Then we generate the source and items as for the other sources and reuse the existing components to render the preview and details item. We had to adjust the rendering logic for these items, to ignore empty values, from which also other sources will benefit.
67 lines
2.8 KiB
Dart
67 lines
2.8 KiB
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
/// Flutter icons [FDIcons]
|
|
/// Copyright (C) 2023 by original authors @ fluttericon.com, fontello.com
|
|
/// This font was generated by FlutterIcon.com, which is derived from Fontello.
|
|
///
|
|
/// To use this font, place it in your fonts/ directory and include the
|
|
/// following in your pubspec.yaml
|
|
///
|
|
/// flutter:
|
|
/// fonts:
|
|
/// - family: FDIcons
|
|
/// fonts:
|
|
/// - asset: fonts/FDIcons.ttf
|
|
///
|
|
class FDIcons {
|
|
FDIcons._();
|
|
|
|
static const _kFontFam = 'FDIcons';
|
|
static const String? _kFontPkg = null;
|
|
|
|
static const IconData apple =
|
|
IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData feeddeck =
|
|
IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData github =
|
|
IconData(0xe802, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData google =
|
|
IconData(0xe803, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData googlenews =
|
|
IconData(0xe804, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData pinterest =
|
|
IconData(0xe805, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData medium =
|
|
IconData(0xe806, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData nitter =
|
|
IconData(0xe807, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData reddit =
|
|
IconData(0xe808, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData stackoverflow =
|
|
IconData(0xe809, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData tumblr =
|
|
IconData(0xe80a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData twitter =
|
|
IconData(0xe80b, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData youtube =
|
|
IconData(0xe80c, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData rss =
|
|
IconData(0xe80d, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData appstore =
|
|
IconData(0xe80e, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData googleplay =
|
|
IconData(0xe80f, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData x =
|
|
IconData(0xe810, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData android =
|
|
IconData(0xe811, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData browser =
|
|
IconData(0xe812, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData linux =
|
|
IconData(0xe813, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData windows =
|
|
IconData(0xe814, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
static const IconData mastodon =
|
|
IconData(0xe815, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
|
}
|