@@ -53,7 +53,8 @@ class TasksBuilder extends StatelessWidget {
5353
5454 void saveChanges (
5555 BuildContext context, Modify modify, String id, String newValue) async {
56- TaskwarriorColorTheme tColors = Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
56+ TaskwarriorColorTheme tColors =
57+ Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
5758 var now = DateTime .now ().toUtc ();
5859 modify.save (
5960 modified: () => now,
@@ -70,6 +71,7 @@ class TasksBuilder extends StatelessWidget {
7071 backgroundColor: tColors.secondaryBackgroundColor,
7172 duration: const Duration (seconds: 2 ),
7273 action: SnackBarAction (
74+ textColor: tColors.purpleShade,
7375 label:
7476 SentenceManager (currentLanguage: selectedLanguage).sentences.undo,
7577 onPressed: () {
@@ -110,32 +112,37 @@ class TasksBuilder extends StatelessWidget {
110112 @override
111113 Widget build (BuildContext context) {
112114 // print(taskData);
113- TaskwarriorColorTheme tColors = Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
115+ TaskwarriorColorTheme tColors =
116+ Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
114117 var storageWidget = Get .find <HomeController >();
115118 return Scaffold (
116119 floatingActionButtonLocation:
117120 FloatingActionButtonLocation .miniStartFloat,
118- floatingActionButton: showbtn ? AnimatedOpacity (
119- duration: const Duration (milliseconds: 100 ), //show/hide animation
120- opacity: showbtn ? 1.0 : 0.0 , //set obacity to 1 on visible, or hide
121- child: FloatingActionButton (
122- heroTag: "btn2" ,
123- onPressed: () {
124- scrollController.animateTo (
125- //go to top of scroll
126- 0 , //scroll offset to go
127- duration:
128- const Duration (milliseconds: 500 ), //duration of scroll
129- curve: Curves .fastLinearToSlowEaseIn //scroll type
130- );
131- },
132- backgroundColor: tColors.primaryTextColor,
133- child: Icon (
134- Icons .arrow_upward,
135- color: tColors.secondaryBackgroundColor,
136- ),
137- ),
138- ) : null ,
121+ floatingActionButton: showbtn
122+ ? AnimatedOpacity (
123+ duration:
124+ const Duration (milliseconds: 100 ), //show/hide animation
125+ opacity:
126+ showbtn ? 1.0 : 0.0 , //set obacity to 1 on visible, or hide
127+ child: FloatingActionButton (
128+ heroTag: "btn2" ,
129+ onPressed: () {
130+ scrollController.animateTo (
131+ //go to top of scroll
132+ 0 , //scroll offset to go
133+ duration: const Duration (
134+ milliseconds: 500 ), //duration of scroll
135+ curve: Curves .fastLinearToSlowEaseIn //scroll type
136+ );
137+ },
138+ backgroundColor: tColors.primaryTextColor,
139+ child: Icon (
140+ Icons .arrow_upward,
141+ color: tColors.secondaryBackgroundColor,
142+ ),
143+ ),
144+ )
145+ : null ,
139146 backgroundColor: Colors .transparent,
140147 body: Obx (
141148 () => taskData.isEmpty
@@ -152,8 +159,7 @@ class TasksBuilder extends StatelessWidget {
152159 style: TextStyle (
153160 fontFamily: FontFamily .poppins,
154161 fontSize: TaskWarriorFonts .fontSizeLarge,
155- color: tColors.primaryTextColor
156- ),
162+ color: tColors.primaryTextColor),
157163 // style: GoogleFonts.poppins(
158164 // fontSize: TaskWarriorFonts.fontSizeLarge,
159165 // color: AppSettings.isDarkMode
@@ -193,7 +199,8 @@ class TasksBuilder extends StatelessWidget {
193199 }
194200 },
195201 icon: Icons .done,
196- label: SentenceManager (currentLanguage: selectedLanguage)
202+ label: SentenceManager (
203+ currentLanguage: selectedLanguage)
197204 .sentences
198205 .complete,
199206 backgroundColor: TaskWarriorColors .green,
@@ -222,7 +229,8 @@ class TasksBuilder extends StatelessWidget {
222229 }
223230 },
224231 icon: Icons .delete,
225- label: SentenceManager (currentLanguage: selectedLanguage)
232+ label: SentenceManager (
233+ currentLanguage: selectedLanguage)
226234 .sentences
227235 .delete,
228236 backgroundColor: TaskWarriorColors .red,
0 commit comments