added share button to theme menu
This commit is contained in:
parent
e66fdbaeac
commit
db7b126bda
1
.gitignore
vendored
1
.gitignore
vendored
@ -49,3 +49,4 @@ key.properties
|
|||||||
|
|
||||||
.flutter-plugins*
|
.flutter-plugins*
|
||||||
filcnaplo/ios/Flutter/flutter_export_environment 4.sh
|
filcnaplo/ios/Flutter/flutter_export_environment 4.sh
|
||||||
|
filcnaplo/ios/Flutter/Generated 4.xcconfig
|
||||||
|
26
filcnaplo_premium/lib/ui/mobile/settings/share_theme.dart
Normal file
26
filcnaplo_premium/lib/ui/mobile/settings/share_theme.dart
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import 'package:filcnaplo/models/settings.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
class PremiumShareTheme extends StatefulWidget {
|
||||||
|
const PremiumShareTheme({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<PremiumShareTheme> createState() => _PremiumShareThemeState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _PremiumShareThemeState extends State<PremiumShareTheme>
|
||||||
|
with TickerProviderStateMixin {
|
||||||
|
late final SettingsProvider settingsProvider;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
settingsProvider = Provider.of<SettingsProvider>(context, listen: false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return const Scaffold();
|
||||||
|
}
|
||||||
|
}
|
@ -17,6 +17,7 @@ import 'package:filcnaplo_premium/ui/mobile/flutter_colorpicker/colorpicker.dart
|
|||||||
import 'package:filcnaplo_premium/ui/mobile/premium/upsell.dart';
|
import 'package:filcnaplo_premium/ui/mobile/premium/upsell.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'theme.i18n.dart';
|
import 'theme.i18n.dart';
|
||||||
|
|
||||||
@ -230,6 +231,30 @@ class _PremiumCustomAccentColorSettingState
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
|
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
leading: BackButton(color: AppColors.of(context).text),
|
leading: BackButton(color: AppColors.of(context).text),
|
||||||
|
actions: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 10.0),
|
||||||
|
child: IconButton(
|
||||||
|
focusColor: Colors.transparent,
|
||||||
|
highlightColor: Colors.transparent,
|
||||||
|
splashColor: Colors.transparent,
|
||||||
|
onPressed: () {
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
const SnackBar(
|
||||||
|
duration: Duration(milliseconds: 1000),
|
||||||
|
content: Text(
|
||||||
|
"Hamarosan...",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
icon: const Icon(
|
||||||
|
FeatherIcons.share2,
|
||||||
|
size: 22.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
title: Text(
|
title: Text(
|
||||||
"theme_prev".i18n,
|
"theme_prev".i18n,
|
||||||
style: TextStyle(color: AppColors.of(context).text),
|
style: TextStyle(color: AppColors.of(context).text),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user